Lines Matching refs:prot
351 int error, prot, af, sproto, isr_prot;
383 prot = ip->ip_p;
390 (prot == IPPROTO_UDP || prot == IPPROTO_TCP))
391 udp_ipsec_adjust_cksum(m, sav, prot, skip);
404 if (prot == IPPROTO_IPIP &&
416 else if (prot == IPPROTO_IPV6 &&
427 else if (prot != IPPROTO_IPV6 && saidx->mode == IPSEC_MODE_ANY) {
431 * In other cases we assume transport mode. Set prot to
434 prot = IPPROTO_IPIP;
466 prot = IPPROTO_IPIP;
470 switch (prot) {
483 __func__, prot));
602 int prot, af, sproto;
640 prot = nxt8;
648 (prot == IPPROTO_UDP || prot == IPPROTO_TCP))
649 udp_ipsec_adjust_cksum(m, sav, prot, skip);
652 if (prot == IPPROTO_IPV6 &&
665 else if (prot == IPPROTO_IPIP &&
678 prot = IPPROTO_IPV6; /* for correct BPF processing */
706 if (prot == IPPROTO_IPIP)
719 switch (prot) {
730 __func__, prot));