Home
last modified time | relevance | path

Searched refs:eth_hdr (Results 1 – 6 of 6) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_xdp_noinline.c210 struct eth_hdr { struct
218 __u64 off = sizeof(struct eth_hdr); in calc_offset() argument
282 struct eth_hdr *new_eth; in encap_v6()
283 struct eth_hdr *old_eth; in encap_v6()
294 ip6h = data + sizeof(struct eth_hdr); in encap_v6()
327 struct eth_hdr *new_eth; in encap_v4()
328 struct eth_hdr *old_eth; in encap_v4()
342 iph = data + sizeof(struct eth_hdr); in encap_v4()
377 struct eth_hdr *new_eth; in decap_v6()
378 struct eth_hdr *old_eth; in decap_v6()
[all …]
Dtest_l4lb.c166 struct eth_hdr { struct
329 struct eth_hdr *eth = pkt_start; in process_packet()
458 struct eth_hdr *eth = data; in balancer_ingress()
462 nh_off = sizeof(struct eth_hdr); in balancer_ingress()
Dtest_l4lb_noinline.c162 struct eth_hdr { struct
329 struct eth_hdr *eth = pkt_start; in process_packet()
458 struct eth_hdr *eth = data; in balancer_ingress()
462 nh_off = sizeof(struct eth_hdr); in balancer_ingress()
/external/u-boot/lib/efi_selftest/
Defi_selftest_snp.c60 struct ethernet_hdr eth_hdr; member
108 boottime->copy_mem(p.eth_hdr.et_dest, (void *)BROADCAST_MAC, ARP_HLEN); in send_dhcp_discover()
109 boottime->copy_mem(p.eth_hdr.et_src, &net->mode->current_address, in send_dhcp_discover()
111 p.eth_hdr.et_protlen = htons(PROT_IP); in send_dhcp_discover()
383 if (buffer.p.eth_hdr.et_protlen != ntohs(PROT_IP) || in execute()
/external/u-boot/lib/efi_loader/
Defi_net.c577 struct ethernet_hdr *eth_hdr; in efi_net_receive() local
609 eth_hdr = (struct ethernet_hdr *)net_rx_packet; in efi_net_receive()
610 protlen = ntohs(eth_hdr->et_protlen); in efi_net_receive()
618 memcpy(dest_addr, eth_hdr->et_dest, ARP_HLEN); in efi_net_receive()
620 memcpy(src_addr, eth_hdr->et_src, ARP_HLEN); in efi_net_receive()
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c3067 struct ieee8023_hdr *eth_hdr; in ieee802_1x_kay_mkpdu_sanity_check() local
3080 eth_hdr = (struct ieee8023_hdr *) buf; in ieee802_1x_kay_mkpdu_sanity_check()
3081 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in ieee802_1x_kay_mkpdu_sanity_check()
3086 MAC2STR(eth_hdr->dest), MAC2STR(eth_hdr->src), in ieee802_1x_kay_mkpdu_sanity_check()
3087 be_to_host16(eth_hdr->ethertype)); in ieee802_1x_kay_mkpdu_sanity_check()
3090 if (os_memcmp(eth_hdr->dest, pae_group_addr, ETH_ALEN) != 0) { in ieee802_1x_kay_mkpdu_sanity_check()
3402 struct ieee8023_hdr *eth_hdr; in kay_l2_receive() local
3409 if (len < sizeof(*eth_hdr) + sizeof(*eapol_hdr)) { in kay_l2_receive()
3415 eth_hdr = (struct ieee8023_hdr *) buf; in kay_l2_receive()
3416 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in kay_l2_receive()
[all …]