Lines Matching refs:protocol
371 init_tunnel_flow(&fl4, iph->protocol, iph->daddr, in ip_tunnel_bind_dev()
475 skb->protocol = eth_type_trans(skb, tunnel->dev); in ip_tunnel_rcv()
567 u8 *protocol, struct flowi4 *fl4) in ip_tunnel_encap() argument
581 ret = ops->build_header(skb, &t->encap, protocol, fl4); in ip_tunnel_encap()
605 if (skb->protocol == htons(ETH_P_IP)) { in tnl_update_pmtu()
615 else if (skb->protocol == htons(ETH_P_IPV6)) { in tnl_update_pmtu()
639 const struct iphdr *tnl_params, u8 protocol) in ip_tunnel_xmit() argument
664 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
669 else if (skb->protocol == htons(ETH_P_IPV6)) { in ip_tunnel_xmit()
708 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
711 } else if (skb->protocol == htons(ETH_P_IPV6)) { in ip_tunnel_xmit()
717 init_tunnel_flow(&fl4, protocol, dst, tnl_params->saddr, in ip_tunnel_xmit()
720 if (ip_tunnel_encap(skb, tunnel, &protocol, &fl4) < 0) in ip_tunnel_xmit()
761 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
764 else if (skb->protocol == htons(ETH_P_IPV6)) in ip_tunnel_xmit()
772 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
787 err = iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, in ip_tunnel_xmit()