Home
last modified time | relevance | path

Searched refs:protoff (Results 1 – 5 of 5) sorted by relevance

/src/sys/netipsec/
H A Dxform_ipcomp.c198 ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ipcomp_input() argument
263 xd->protoff = protoff; in ipcomp_input()
294 int skip, protoff; in ipcomp_input_cb() local
302 protoff = xd->protoff; in ipcomp_input_cb()
372 m_copyback(m, protoff, sizeof (u_int8_t), (u_int8_t *) &nproto); in ipcomp_input_cb()
377 error = ipsec6_common_input_cb(m, sav, skip, protoff, in ipcomp_input_cb()
383 error = ipsec4_common_input_cb(m, sav, skip, protoff, in ipcomp_input_cb()
412 u_int idx, int skip, int protoff) in ipcomp_output() argument
520 xd->protoff = protoff; in ipcomp_output()
552 int error, skip, protoff; in ipcomp_output_cb() local
[all …]
H A Dxform_ah.c535 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ah_input() argument
673 xd->protoff = protoff; in ah_input()
702 int authsize, rplen, ahsize, error, skip, protoff; in ah_input_cb() local
713 protoff = xd->protoff; in ah_input_cb()
776 ((uint8_t *) ptr)[protoff] = nxt; in ah_input_cb()
820 error = ipsec6_common_input_cb(m, sav, skip, protoff, in ah_input_cb()
826 error = ipsec4_common_input_cb(m, sav, skip, protoff, in ah_input_cb()
855 u_int idx, int skip, int protoff) in ah_output() argument
947 m_copydata(m, protoff, sizeof(u_int8_t), (caddr_t) &ah->ah_nxt); in ah_output()
1045 ((uint8_t *) (xd + 1))[protoff] = IPPROTO_AH; in ah_output()
[all …]
H A Dxform_esp.c268 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in esp_input() argument
425 xd->protoff = protoff; in esp_input()
503 int hlen, skip, protoff, error, alen; in esp_input_cb() local
520 protoff = xd->protoff; in esp_input_cb()
659 m_copyback(m, protoff, sizeof (u_int8_t), lastthree + 2); in esp_input_cb()
664 error = ipsec6_common_input_cb(m, sav, skip, protoff, in esp_input_cb()
670 error = ipsec4_common_input_cb(m, sav, skip, protoff, in esp_input_cb()
700 u_int idx, int skip, int protoff) in esp_output() argument
869 m_copydata(m, protoff, sizeof(u_int8_t), pad + padding - 1); in esp_output()
873 m_copyback(m, protoff, sizeof(u_int8_t), (u_char *) &prot); in esp_output()
H A Dipsec_input.c120 ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto) in ipsec_common_input() argument
227 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); in ipsec_common_input()
342 int protoff, struct rm_priotracker *sahtree_tracker) in ipsec4_common_input_cb() argument
596 int protoff, struct rm_priotracker *sahtree_tracker) in ipsec6_common_input_cb() argument
642 m_copydata(m, protoff, 1, &nxt8); in ipsec6_common_input_cb()
H A Dxform.h75 int protoff; /* current protocol offset */ member