Lines Matching refs:proto

579 	__be16 proto = skb->protocol;  in vlan_get_protocol_dgram()  local
581 if (unlikely(eth_type_vlan(proto))) { in vlan_get_protocol_dgram()
586 proto = __vlan_get_protocol(skb, proto, NULL); in vlan_get_protocol_dgram()
593 return proto; in vlan_get_protocol_dgram()
2021 __be16 proto = 0; in packet_sendmsg_spkt() local
2033 proto = saddr->spkt_protocol; in packet_sendmsg_spkt()
2116 skb->protocol = proto; in packet_sendmsg_spkt()
2644 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument
2655 skb->protocol = proto; in tpacket_fill_skb()
2669 err = dev_hard_header(skb, dev, ntohs(proto), addr, in tpacket_fill_skb()
2796 __be16 proto; in tpacket_snd() local
2821 proto = READ_ONCE(po->num); in tpacket_snd()
2830 proto = saddr->sll_protocol; in tpacket_snd()
2912 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
3020 __be16 proto; in packet_snd() local
3037 proto = READ_ONCE(po->num); in packet_snd()
3044 proto = saddr->sll_protocol; in packet_snd()
3104 offset = dev_hard_header(skb, dev, ntohs(proto), addr, NULL, len); in packet_snd()
3133 skb->protocol = proto; in packet_snd()
3265 __be16 proto) in packet_do_bind() argument
3275 if (!proto) in packet_do_bind()
3276 proto = po->num; in packet_do_bind()
3299 need_rehook = po->prot_hook.type != proto || po->prot_hook.dev != dev; in packet_do_bind()
3317 WRITE_ONCE(po->num, proto); in packet_do_bind()
3318 po->prot_hook.type = proto; in packet_do_bind()
3336 if (proto == 0 || !need_rehook) in packet_do_bind()
3396 static struct proto packet_proto = {
3411 __be16 proto = (__force __be16)protocol; /* weird, but documented */ in packet_create() local
3436 po->num = proto; in packet_create()
3461 if (proto) { in packet_create()
3462 po->prot_hook.type = proto; in packet_create()