Searched refs:vhdr (Results 1 – 8 of 8) sorted by relevance
/net/8021q/ |
D | vlan.c | 626 struct vlan_hdr *vhdr; in vlan_gro_receive() local 633 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive() 634 vhdr = skb_gro_header_fast(skb, off_vlan); in vlan_gro_receive() 636 vhdr = skb_gro_header_slow(skb, hlen, off_vlan); in vlan_gro_receive() 637 if (unlikely(!vhdr)) in vlan_gro_receive() 641 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_receive() 657 if (compare_vlan_header(vhdr, vhdr2)) in vlan_gro_receive() 661 skb_gro_pull(skb, sizeof(*vhdr)); in vlan_gro_receive() 662 skb_gro_postpull_rcsum(skb, vhdr, sizeof(*vhdr)); in vlan_gro_receive() 675 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete() local [all …]
|
D | vlan_dev.c | 55 struct vlan_hdr *vhdr; in vlan_dev_hard_header() local 61 vhdr = (struct vlan_hdr *) skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 65 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header() 72 vhdr->h_vlan_encapsulated_proto = htons(type); in vlan_dev_hard_header() 74 vhdr->h_vlan_encapsulated_proto = htons(len); in vlan_dev_hard_header()
|
/net/netfilter/ |
D | nfnetlink_queue.c | 947 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local 953 vhdr = nla_data(nfqa[NFQA_VERDICT_HDR]); in verdicthdr_get() 954 verdict = ntohl(vhdr->verdict) & NF_VERDICT_MASK; in verdicthdr_get() 957 return vhdr; in verdicthdr_get() 973 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local 986 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch() 987 if (!vhdr) in nfqnl_recv_verdict_batch() 990 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch() 991 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch() 1045 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local [all …]
|
/net/batman-adv/ |
D | main.c | 354 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local 367 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority() 368 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority() 369 if (!vhdr) in batadv_skb_set_priority() 371 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority() 1228 struct vlan_ethhdr *vhdr; in batadv_get_vid() local 1237 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid() 1238 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
|
D | soft-interface.c | 195 struct vlan_ethhdr *vhdr; in batadv_interface_tx() local 218 if (!pskb_may_pull(skb, sizeof(*vhdr))) in batadv_interface_tx() 220 vhdr = vlan_eth_hdr(skb); in batadv_interface_tx() 222 if (vhdr->h_vlan_encapsulated_proto != ethertype) { in batadv_interface_tx() 393 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local 424 vhdr = (struct vlan_ethhdr *)skb->data; in batadv_interface_rx() 426 if (vhdr->h_vlan_encapsulated_proto != ethertype) in batadv_interface_rx()
|
D | gateway_client.c | 683 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local 701 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 702 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
|
D | bridge_loop_avoidance.c | 952 struct vlan_hdr *vhdr, vhdr_buf; in batadv_bla_process_claim() local 976 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim() 978 if (!vhdr) in batadv_bla_process_claim() 981 proto = vhdr->h_vlan_encapsulated_proto; in batadv_bla_process_claim()
|
/net/core/ |
D | skbuff.c | 4392 struct vlan_hdr *vhdr; in skb_vlan_untag() local 4407 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag() 4408 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag() 4412 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag() 4445 struct vlan_hdr *vhdr; in __skb_vlan_pop() local 4456 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in __skb_vlan_pop() 4457 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in __skb_vlan_pop() 4462 vlan_set_encap_proto(skb, vhdr); in __skb_vlan_pop()
|