Lines Matching refs:protocol
579 __be16 proto = skb->protocol; in vlan_get_protocol_dgram()
1071 } else if (unlikely(po->sk.sk_type == SOCK_DGRAM && eth_type_vlan(pkc->skb->protocol))) { in prb_fill_vlan_info()
1073 ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->protocol); in prb_fill_vlan_info()
1973 spkt->spkt_protocol = skb->protocol; in packet_rcv_spkt()
1993 if ((!skb->protocol || skb->protocol == htons(ETH_P_ALL)) && in packet_parse_headers()
1996 skb->protocol = dev_parse_header_protocol(skb); in packet_parse_headers()
2001 eth_type_vlan(skb->protocol) && in packet_parse_headers()
2002 vlan_get_protocol_and_depth(skb, skb->protocol, &depth) != 0) in packet_parse_headers()
2116 skb->protocol = proto; in packet_sendmsg_spkt()
2495 } else if (unlikely(sk->sk_type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) { in tpacket_rcv()
2497 h.h2->tp_vlan_tpid = ntohs(skb->protocol); in tpacket_rcv()
2529 vlan_get_protocol_dgram(skb) : skb->protocol; in tpacket_rcv()
2655 skb->protocol = proto; in tpacket_fill_skb()
3133 skb->protocol = proto; in packet_snd()
3406 static int packet_create(struct net *net, struct socket *sock, int protocol, in packet_create() argument
3411 __be16 proto = (__force __be16)protocol; /* weird, but documented */ in packet_create()
3558 vlan_get_protocol_dgram(skb) : skb->protocol; in packet_recvmsg()
3615 } else if (unlikely(sock->type == SOCK_DGRAM && eth_type_vlan(skb->protocol))) { in packet_recvmsg()
3623 aux.tp_vlan_tpid = ntohs(skb->protocol); in packet_recvmsg()