Lines Matching defs:proto
104 #define IPSEC_ISTAT(proto, name) do { \
105 if ((proto) == IPPROTO_ESP) \
107 else if ((proto) == IPPROTO_AH) \
239 ipsec4_input(struct mbuf *m, int offset, int proto)
243 error = ipsec_accel_input(m, offset, proto);
247 switch (proto) {
253 offsetof(struct ip, ip_p), AF_INET, proto);
260 switch (proto) {
301 uint8_t proto;
308 proto = ip->ip_p;
309 if (proto != IPPROTO_ESP && proto != IPPROTO_AH &&
310 proto != IPPROTO_IPCOMP)
314 sav = key_allocsa((union sockaddr_union *)&icmpsrc, proto, spi);
358 sproto = saidx->proto;
454 xh->proto = sproto;
482 DPRINTF(("%s: cannot handle inner ip proto %d\n",
500 DPRINTF(("%s: queue full; proto %u packet dropped\n",
519 ipsec6_lasthdr(int proto)
522 switch (proto) {
543 ipsec6_input(struct mbuf *m, int offset, int proto)
547 error = ipsec_accel_input(m, offset, proto);
551 switch (proto) {
557 offsetof(struct ip6_hdr, ip6_nxt), AF_INET6, proto);
564 if (!ipsec6_lasthdr(proto))
612 sproto = saidx->proto;
698 xh->proto = sproto;
729 DPRINTF(("%s: cannot handle inner ip proto %d\n",
743 DPRINTF(("%s: queue full; proto %u packet"