Lines Matching refs:esp
111 #include <netinet6/esp.h>
138 (sizeof(struct esp) < sizeof(struct newesp) \
139 ? sizeof(struct newesp) : sizeof(struct esp))
168 struct esp *esp;
204 // expect udp-encap and esp packets only
212 esp = (struct esp *)(void *)(((u_int8_t *)ip) + off);
220 spi = esp->esp_spi;
259 seq = ntohl(((struct newesp *)esp)->esp_seq);
344 /* process main esp header. */
347 esplen = sizeof(struct esp);
351 esplen = sizeof(struct esp);
440 // if peer is behind nat and this is the latest esp packet
452 esp = (struct esp *)(void *)(((u_int8_t *)ip) + off);
728 struct esp *esp;
749 esp = (struct esp *)(void *)(mtod(m, caddr_t) + off);
751 IP6_EXTHDR_GET(esp, struct esp *, m, off, ESPMAXLEN);
752 if (esp == NULL) {
770 spi = esp->esp_spi;
809 seq = ntohl(((struct newesp *)esp)->esp_seq);
892 /* process main esp header. */
895 esplen = sizeof(struct esp);
899 esplen = sizeof(struct esp);
914 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
915 if (esp == NULL) {
1193 struct newesp esp;
1243 if (m->m_pkthdr.len < off + sizeof(esp))
1246 if (m->m_len < off + sizeof(esp)) {
1251 m_copydata(m, off, sizeof(esp), (caddr_t)&esp);
1252 espp = &esp;