Lines Matching refs:esp
112 #include <netinet6/esp.h>
137 (sizeof(struct esp) < sizeof(struct newesp) \
138 ? sizeof(struct newesp) : sizeof(struct esp))
167 struct esp *esp;
203 // expect udp-encap and esp packets only
211 esp = (struct esp *)(void *)(((u_int8_t *)ip) + off);
219 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);
751 struct esp *esp;
772 esp = (struct esp *)(void *)(mtod(m, caddr_t) + off);
774 IP6_EXTHDR_GET(esp, struct esp *, m, off, ESPMAXLEN);
775 if (esp == NULL) {
793 spi = esp->esp_spi;
833 seq = ntohl(((struct newesp *)esp)->esp_seq);
916 /* process main esp header. */
919 esplen = sizeof(struct esp);
923 esplen = sizeof(struct esp);
938 IP6_EXTHDR_GET(esp, struct esp *, m, off, esplen + ivlen);
939 if (esp == NULL) {
1241 struct newesp esp;
1291 if (m->m_pkthdr.len < off + sizeof(esp))
1294 if (m->m_len < off + sizeof(esp)) {
1299 m_copydata(m, off, sizeof(esp), (caddr_t)&esp);
1300 espp = &esp;