Lines Matching refs:protocol
206 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) { in parse_args()
209 p->iph.protocol = IPPROTO_IPIP; in parse_args()
213 if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) { in parse_args()
216 p->iph.protocol = IPPROTO_GRE; in parse_args()
220 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { in parse_args()
223 p->iph.protocol = IPPROTO_IPV6; in parse_args()
330 if (p->iph.protocol == 0) { in parse_args()
332 p->iph.protocol = IPPROTO_GRE; in parse_args()
334 p->iph.protocol = IPPROTO_IPIP; in parse_args()
336 p->iph.protocol = IPPROTO_IPV6; in parse_args()
339 if (p->iph.protocol == IPPROTO_IPIP || p->iph.protocol == IPPROTO_IPV6) { in parse_args()
373 switch (p.iph.protocol) { in do_add()
392 switch (p.iph.protocol) { in do_del()
411 p->iph.protocol == IPPROTO_IPIP ? "ip" : in print_tunnel()
412 p->iph.protocol == IPPROTO_GRE ? "gre" : in print_tunnel()
413 p->iph.protocol == IPPROTO_IPV6 ? "ipv6" : in print_tunnel()
530 switch (p.iph.protocol) { in do_show()