| /freebsd-12-stable/sys/netipsec/ |
| D | xform_ipcomp.c | 192 ipcomp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ipcomp_input() argument 256 xd->protoff = protoff; in ipcomp_input() 285 int skip, protoff; in ipcomp_input_cb() local 293 protoff = xd->protoff; in ipcomp_input_cb() 355 m_copyback(m, protoff, sizeof (u_int8_t), (u_int8_t *) &nproto); in ipcomp_input_cb() 360 error = ipsec6_common_input_cb(m, sav, skip, protoff); in ipcomp_input_cb() 365 error = ipsec4_common_input_cb(m, sav, skip, protoff); in ipcomp_input_cb() 392 u_int idx, int skip, int protoff) in ipcomp_output() argument 500 xd->protoff = protoff; in ipcomp_output() 536 int error, skip, protoff; in ipcomp_output_cb() local [all …]
|
| D | xform_esp.c | 291 esp_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in esp_input() argument 433 xd->protoff = protoff; in esp_input() 488 int hlen, skip, protoff, error, alen; in esp_input_cb() local 498 protoff = xd->protoff; in esp_input_cb() 635 m_copyback(m, protoff, sizeof (u_int8_t), lastthree + 2); in esp_input_cb() 640 error = ipsec6_common_input_cb(m, sav, skip, protoff); in esp_input_cb() 645 error = ipsec4_common_input_cb(m, sav, skip, protoff); in esp_input_cb() 671 u_int idx, int skip, int protoff) in esp_output() argument 827 m_copydata(m, protoff, sizeof(u_int8_t), pad + padding - 1); in esp_output() 831 m_copyback(m, protoff, sizeof(u_int8_t), (u_char *) &prot); in esp_output()
|
| D | xform_ah.c | 560 ah_input(struct mbuf *m, struct secasvar *sav, int skip, int protoff) in ah_input() argument 701 xd->protoff = protoff; in ah_input() 726 int authsize, rplen, ahsize, error, skip, protoff; in ah_input_cb() local 735 protoff = xd->protoff; in ah_input_cb() 790 ((uint8_t *) ptr)[protoff] = nxt; in ah_input_cb() 834 error = ipsec6_common_input_cb(m, sav, skip, protoff); in ah_input_cb() 839 error = ipsec4_common_input_cb(m, sav, skip, protoff); in ah_input_cb() 866 u_int idx, int skip, int protoff) in ah_output() argument 956 m_copydata(m, protoff, sizeof(u_int8_t), (caddr_t) &ah->ah_nxt); in ah_output() 1055 ((uint8_t *) (xd + 1))[protoff] = IPPROTO_AH; in ah_output() [all …]
|
| D | ipsec_input.c | 118 ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto) in ipsec_common_input() argument 225 error = (*sav->tdb_xform->xf_input)(m, sav, skip, protoff); in ipsec_common_input() 278 int protoff) in ipsec4_common_input_cb() argument 489 int protoff) in ipsec6_common_input_cb() argument 533 m_copydata(m, protoff, 1, &nxt8); in ipsec6_common_input_cb()
|
| D | xform.h | 76 int protoff; /* current protocol offset */ member
|