Home
last modified time | relevance | path

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

/f-stack/freebsd/netipsec/
H A Dxform_ipcomp.c259 xd->protoff = protoff; in ipcomp_input()
289 int skip, protoff; in ipcomp_input_cb() local
297 protoff = xd->protoff; in ipcomp_input_cb()
359 m_copyback(m, protoff, sizeof (u_int8_t), (u_int8_t *) &nproto); in ipcomp_input_cb()
364 error = ipsec6_common_input_cb(m, sav, skip, protoff); in ipcomp_input_cb()
369 error = ipsec4_common_input_cb(m, sav, skip, protoff); in ipcomp_input_cb()
396 u_int idx, int skip, int protoff) in ipcomp_output() argument
502 xd->protoff = protoff; in ipcomp_output()
534 int error, skip, protoff; in ipcomp_output_cb() local
543 protoff = xd->protoff; in ipcomp_output_cb()
[all …]
H A Dxform_ah.c532 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ah_input() argument
670 xd->protoff = protoff; in ah_input()
695 int authsize, rplen, ahsize, error, skip, protoff; in ah_input_cb() local
704 protoff = xd->protoff; in ah_input_cb()
759 ((uint8_t *) ptr)[protoff] = nxt; in ah_input_cb()
803 error = ipsec6_common_input_cb(m, sav, skip, protoff); in ah_input_cb()
808 error = ipsec4_common_input_cb(m, sav, skip, protoff); in ah_input_cb()
835 u_int idx, int skip, int protoff) in ah_output() argument
925 m_copydata(m, protoff, sizeof(u_int8_t), (caddr_t) &ah->ah_nxt); in ah_output()
1020 ((uint8_t *) (xd + 1))[protoff] = IPPROTO_AH; in ah_output()
[all …]
H A Dxform_esp.c260 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in esp_input() argument
417 xd->protoff = protoff; in esp_input()
491 int hlen, skip, protoff, error, alen; in esp_input_cb() local
498 protoff = xd->protoff; in esp_input_cb()
636 m_copyback(m, protoff, sizeof (u_int8_t), lastthree + 2); in esp_input_cb()
641 error = ipsec6_common_input_cb(m, sav, skip, protoff); in esp_input_cb()
646 error = ipsec4_common_input_cb(m, sav, skip, protoff); in esp_input_cb()
674 u_int idx, int skip, int protoff) in esp_output() argument
839 m_copydata(m, protoff, sizeof(u_int8_t), pad + padding - 1); in esp_output()
843 m_copyback(m, protoff, sizeof(u_int8_t), (u_char *) &prot); in esp_output()
H A Dipsec_input.c117 ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto) in ipsec_common_input() argument
224 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); in ipsec_common_input()
277 int protoff) in ipsec4_common_input_cb() argument
491 int protoff) in ipsec6_common_input_cb() argument
535 m_copydata(m, protoff, 1, &nxt8); in ipsec6_common_input_cb()
H A Dxform.h76 int protoff; /* current protocol offset */ member