Searched refs:l2_hdr (Results 1 – 2 of 2) sorted by relevance
102 __u8 *l2_hdr = NULL; in __encap_ipv4() local201 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4()204 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv4()210 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv4()215 l2_hdr += sizeof(struct vxlanhdr); in __encap_ipv4()218 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4()270 __u8 *l2_hdr = NULL; in __encap_ipv6() local331 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv6()334 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv6()340 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv6()[all …]
1437 unsigned char *l2_hdr = skb->data; in hns3_set_l2l3l4() local1465 l2_hdr = skb_inner_mac_header(skb); in hns3_set_l2l3l4()1474 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()