Lines Matching refs:protocol
378 init_tunnel_flow(&fl4, iph->protocol, iph->daddr, in ip_tunnel_bind_dev()
483 skb->protocol = eth_type_trans(skb, tunnel->dev); in ip_tunnel_rcv()
578 u8 *protocol, struct flowi4 *fl4) in ip_tunnel_encap() argument
592 ret = ops->build_header(skb, &t->encap, protocol, fl4); in ip_tunnel_encap()
616 if (skb->protocol == htons(ETH_P_IP)) { in tnl_update_pmtu()
626 else if (skb->protocol == htons(ETH_P_IPV6)) { in tnl_update_pmtu()
650 const struct iphdr *tnl_params, u8 protocol) in ip_tunnel_xmit() argument
677 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
682 else if (skb->protocol == htons(ETH_P_IPV6)) { in ip_tunnel_xmit()
721 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
724 } else if (skb->protocol == htons(ETH_P_IPV6)) { in ip_tunnel_xmit()
730 init_tunnel_flow(&fl4, protocol, dst, tnl_params->saddr, in ip_tunnel_xmit()
733 if (ip_tunnel_encap(skb, tunnel, &protocol, &fl4) < 0) in ip_tunnel_xmit()
773 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
776 else if (skb->protocol == htons(ETH_P_IPV6)) in ip_tunnel_xmit()
784 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
799 err = iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, in ip_tunnel_xmit()