Home
last modified time | relevance | path

Searched refs:vlan_hlen (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/net/netfilter/
Dnft_payload.c47 u8 vlan_hlen = 0; in nft_payload_copy_vlan() local
52 vlan_hlen += VLAN_HLEN; in nft_payload_copy_vlan()
55 if (offset < VLAN_ETH_HLEN + vlan_hlen) { in nft_payload_copy_vlan()
58 if (vlan_hlen && in nft_payload_copy_vlan()
64 if (offset + len > VLAN_ETH_HLEN + vlan_hlen) in nft_payload_copy_vlan()
65 ethlen -= offset + len - VLAN_ETH_HLEN - vlan_hlen; in nft_payload_copy_vlan()
67 memcpy(dst_u8, vlanh + offset - vlan_hlen, ethlen); in nft_payload_copy_vlan()
74 offset = ETH_HLEN + vlan_hlen; in nft_payload_copy_vlan()
76 offset -= VLAN_HLEN + vlan_hlen; in nft_payload_copy_vlan()
/linux-6.1.9/include/linux/
Dvirtio_net.h169 int vlan_hlen) in virtio_net_hdr_from_skb() argument
195 skb_checksum_start_offset(skb) + vlan_hlen); in virtio_net_hdr_from_skb()
/linux-6.1.9/drivers/net/
Dtun.c2081 int vlan_hlen = 0; in tun_put_user() local
2085 vlan_hlen = VLAN_HLEN; in tun_put_user()
2090 total = skb->len + vlan_hlen + vnet_hdr_sz; in tun_put_user()
2114 vlan_hlen)) { in tun_put_user()
2134 if (vlan_hlen) { in tun_put_user()
2157 dev_sw_netstats_tx_add(tun->dev, 1, skb->len + vlan_hlen); in tun_put_user()
Dtap.c789 int vlan_hlen = skb_vlan_tag_present(skb) ? VLAN_HLEN : 0; in tap_put_user() local
798 vlan_hlen)) in tap_put_user()