Lines Matching defs:prot
286 int error, prot, af, sproto, isr_prot;
318 prot = ip->ip_p;
325 (prot == IPPROTO_UDP || prot == IPPROTO_TCP))
326 udp_ipsec_adjust_cksum(m, sav, prot, skip);
334 if (prot == IPPROTO_IPIP &&
346 else if (prot == IPPROTO_IPV6 &&
357 else if (prot != IPPROTO_IPV6 && saidx->mode == IPSEC_MODE_ANY) {
361 * In other cases we assume transport mode. Set prot to
364 prot = IPPROTO_IPIP;
396 prot = IPPROTO_IPIP;
400 switch (prot) {
413 __func__, prot));
497 int prot, af, sproto;
534 prot = nxt8;
537 if (prot == IPPROTO_IPV6 &&
550 else if (prot == IPPROTO_IPIP &&
563 prot = IPPROTO_IPV6; /* for correct BPF processing */
591 if (prot == IPPROTO_IPIP)
604 switch (prot) {
615 __func__, prot));