Searched refs:eth_hdr (Results 1 – 7 of 7) sorted by relevance
/Zephyr-Core-3.7.0/samples/net/dsa/src/ |
D | dsa_lldp.c | 38 struct net_eth_hdr *eth_hdr = (struct net_eth_hdr *) buffer; in dsa_lldp_send() local 49 memcpy(eth_hdr->src.addr, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 50 eth_hdr->dst.addr[0] = MCAST_DEST_MAC0; in dsa_lldp_send() 51 eth_hdr->dst.addr[1] = MCAST_DEST_MAC1; in dsa_lldp_send() 52 eth_hdr->dst.addr[2] = MCAST_DEST_MAC2; in dsa_lldp_send() 53 eth_hdr->dst.addr[3] = MCAST_DEST_MAC3; in dsa_lldp_send() 54 eth_hdr->dst.addr[4] = MCAST_DEST_MAC4; in dsa_lldp_send() 55 eth_hdr->dst.addr[5] = MCAST_DEST_MAC5; in dsa_lldp_send() 58 eth_hdr->type = htons(LLDP_ETHER_TYPE); in dsa_lldp_send() 154 struct net_eth_hdr *eth_hdr = in dsa_lldp_recv() local [all …]
|
/Zephyr-Core-3.7.0/tests/net/bridge/src/ |
D | main.c | 63 struct net_eth_hdr *eth_hdr = NET_ETH_HDR(pkt); in eth_fake_send() local 69 if (eth_hdr->type != htons(NET_ETH_PTYPE_ALL)) { in eth_fake_send() 226 struct net_eth_hdr eth_hdr; in _recv_data() local 230 pkt = net_pkt_rx_alloc_with_buffer(iface, sizeof(eth_hdr) + sizeof(data), in _recv_data() 241 eth_hdr.dst.addr[0] = 0xb2; in _recv_data() 242 eth_hdr.dst.addr[1] = 0x11; in _recv_data() 243 eth_hdr.dst.addr[2] = 0x22; in _recv_data() 244 eth_hdr.dst.addr[3] = 0x33; in _recv_data() 245 eth_hdr.dst.addr[4] = net_if_get_by_iface(iface); in _recv_data() 246 eth_hdr.dst.addr[5] = 0x55; in _recv_data() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/pkt_filter/ |
D | ethernet.c | 46 struct net_eth_hdr *eth_hdr = NET_ETH_HDR(pkt); in npf_eth_src_addr_match() local 48 return addr_match(test, ð_hdr->src); in npf_eth_src_addr_match() 58 struct net_eth_hdr *eth_hdr = NET_ETH_HDR(pkt); in npf_eth_dst_addr_match() local 60 return addr_match(test, ð_hdr->dst); in npf_eth_dst_addr_match() 72 struct net_eth_hdr *eth_hdr = NET_ETH_HDR(pkt); in npf_eth_type_match() local 75 return eth_hdr->type == test_eth_type->type; in npf_eth_type_match()
|
/Zephyr-Core-3.7.0/tests/net/npf/src/ |
D | main.c | 56 struct net_eth_hdr eth_hdr; in build_test_pkt() local 62 eth_hdr.src = ETH_SRC_ADDR; in build_test_pkt() 63 eth_hdr.dst = ETH_DST_ADDR; in build_test_pkt() 64 eth_hdr.type = htons(type); in build_test_pkt() 66 ret = net_pkt_write(pkt, ð_hdr, sizeof(eth_hdr)); in build_test_pkt() 69 zassert_true(size >= sizeof(eth_hdr), ""); in build_test_pkt() 70 zassert_true((size - sizeof(eth_hdr)) <= sizeof(dummy_data), ""); in build_test_pkt() 71 ret = net_pkt_write(pkt, dummy_data, size - sizeof(eth_hdr)); in build_test_pkt()
|
/Zephyr-Core-3.7.0/tests/net/arp/src/ |
D | main.c | 224 struct net_eth_hdr **eth_hdr) in prepare_arp_request() argument 247 *eth_hdr = eth; in prepare_arp_request() 329 struct net_eth_hdr *eth_hdr = NULL; in ZTEST() local 533 pkt2 = prepare_arp_reply(iface, pkt, ð_hwaddr, ð_hdr); in ZTEST() 538 switch (net_arp_input(pkt2, eth_hdr)) { in ZTEST() 574 pkt2 = prepare_arp_request(iface, pkt, ð_hwaddr, ð_hdr); in ZTEST() 581 switch (net_arp_input(pkt2, eth_hdr)) { in ZTEST() 619 eth_hdr = (struct net_eth_hdr *)net_pkt_data(pkt); in ZTEST() 636 verdict = net_arp_input(pkt, eth_hdr); in ZTEST()
|
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/ |
D | arp.h | 50 struct net_eth_hdr *eth_hdr);
|
D | arp.c | 769 struct net_eth_hdr *eth_hdr) in net_arp_input() argument 777 (net_pkt_ip_data(pkt) - (uint8_t *)eth_hdr))) { in net_arp_input() 780 (net_pkt_ip_data(pkt) - (uint8_t *)eth_hdr), pkt); in net_arp_input() 801 if (net_eth_is_addr_broadcast(ð_hdr->dst) && in net_arp_input() 820 if (memcmp(ð_hdr->dst, net_eth_broadcast_addr(), in net_arp_input() 859 dst_hw_addr = ð_hdr->src; in net_arp_input() 863 reply = arp_prepare_reply(net_pkt_iface(pkt), pkt, eth_hdr, in net_arp_input()
|