Home
last modified time | relevance | path

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

12345678910>>...30

/dports/net/libnet/libnet-1.1.6/src/
H A Dlibnet_build_ethernet.c48 struct libnet_ethernet_hdr eth_hdr; in libnet_build_ethernet() local
79 memset(&eth_hdr, 0, sizeof(eth_hdr)); in libnet_build_ethernet()
80 memcpy(eth_hdr.ether_dhost, dst, ETHER_ADDR_LEN); /* destination address */ in libnet_build_ethernet()
81 memcpy(eth_hdr.ether_shost, src, ETHER_ADDR_LEN); /* source address */ in libnet_build_ethernet()
82 eth_hdr.ether_type = htons(type); /* packet type */ in libnet_build_ethernet()
84 n = libnet_pblock_append(l, p, (uint8_t *)&eth_hdr, LIBNET_ETH_H); in libnet_build_ethernet()
107 struct libnet_ethernet_hdr eth_hdr; in libnet_autobuild_ethernet() local
144 memset(&eth_hdr, 0, sizeof(eth_hdr)); in libnet_autobuild_ethernet()
146 memcpy(eth_hdr.ether_shost, src, ETHER_ADDR_LEN); /* source address */ in libnet_autobuild_ethernet()
147 eth_hdr.ether_type = htons(type); /* packet type */ in libnet_autobuild_ethernet()
[all …]
H A Dlibnet_write.c136 struct libnet_ethernet_hdr eth_hdr; in libnet_win32_build_fake_ethernet() local
143 memset(&eth_hdr, 0, sizeof(eth_hdr)); in libnet_win32_build_fake_ethernet()
144 eth_hdr.ether_type = htons(type); in libnet_win32_build_fake_ethernet()
145 memcpy(eth_hdr.ether_dhost, dst, ETHER_ADDR_LEN); /* destination address */ in libnet_win32_build_fake_ethernet()
146 memcpy(eth_hdr.ether_shost, src, ETHER_ADDR_LEN); /* source address */ in libnet_win32_build_fake_ethernet()
156 memcpy(packet, &eth_hdr, sizeof(eth_hdr)); in libnet_win32_build_fake_ethernet()
/dports/net/thcrut/thcrut-1.2.5/Libnet-1.0.2a/src/
H A Dlibnet_build_ethernet.c42 struct libnet_ethernet_hdr eth_hdr; in libnet_build_ethernet() local
49 memcpy(eth_hdr.ether_dhost, dst, ETHER_ADDR_LEN); /* destination address */ in libnet_build_ethernet()
50 memcpy(eth_hdr.ether_shost, src, ETHER_ADDR_LEN); /* source address */ in libnet_build_ethernet()
51 eth_hdr.ether_type = htons(type); /* packet type */ in libnet_build_ethernet()
61 memcpy(buf, &eth_hdr, sizeof(eth_hdr)); in libnet_build_ethernet()
/dports/security/fragrouter/fragrouter-1.6/Libnet-0.99b/src/
H A Dbuild_ethernet.c43 struct libnet_ethernet_hdr eth_hdr; in build_ethernet() local
47 memcpy(eth_hdr.ether_dhost, dst, ETHER_ADDR_LEN); /* destination address */ in build_ethernet()
48 memcpy(eth_hdr.ether_shost, src, ETHER_ADDR_LEN); /* source address */ in build_ethernet()
49 eth_hdr.ether_type = htons(type); /* packet type */ in build_ethernet()
59 memcpy(buf, &eth_hdr, sizeof(eth_hdr)); in build_ethernet()
/dports/net/bittwist/bittwist-1.1/src/
H A Dbittwistb.c236 struct ether_header *eth_hdr; in bridge_fwd() local
252 eth_hdr = (struct ether_header *)malloc(ETHER_HDR_LEN); in bridge_fwd()
253 if (eth_hdr == NULL) in bridge_fwd()
257 memcpy(eth_hdr, pkt_data, ETHER_HDR_LEN); in bridge_fwd()
260 index = HASH_FUNC(eth_hdr->ether_shost); /* hash source MAC */ in bridge_fwd()
290 (void)printf("%02x", eth_hdr->ether_shost[i]); in bridge_fwd()
301 free(eth_hdr); eth_hdr = NULL; in bridge_fwd()
308 if (ETHER_ADDR_EQ(eth_hdr->ether_dhost, ether_bcast)) { in bridge_fwd()
313 else if (ETHER_IS_MULTICAST(eth_hdr->ether_dhost)) { in bridge_fwd()
348 (const struct ether_addr *)eth_hdr->ether_dhost, in bridge_fwd()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/scsi/qedf/
H A Dqedf_fip.c124 struct ethhdr *eth_hdr; in qedf_fip_send() local
137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
170 struct ethhdr *eth_hdr; in qedf_fip_recv() local
186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/scsi/qedf/
H A Dqedf_fip.c124 struct ethhdr *eth_hdr; in qedf_fip_send() local
137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
170 struct ethhdr *eth_hdr; in qedf_fip_recv() local
186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/scsi/qedf/
H A Dqedf_fip.c124 struct ethhdr *eth_hdr; in qedf_fip_send() local
137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
170 struct ethhdr *eth_hdr; in qedf_fip_recv() local
186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/dports/net-mgmt/aircrack-ng/aircrack-ng-1.5.2/test/
H A Dpingreply.c52 struct eth_hdr { struct
81 struct eth_hdr eth;
113 const struct eth_hdr *eth, in reply_icmp_echo()
163 const struct eth_hdr *eth; in receive_packet()
167 len -= sizeof(struct eth_hdr); in receive_packet()
171 eth = (struct eth_hdr*) packet; in receive_packet()
172 packet += sizeof(struct eth_hdr); in receive_packet()
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c210 struct eth_hdr { struct
282 struct eth_hdr *new_eth; in encap_v6()
283 struct eth_hdr *old_eth; in encap_v6()
327 struct eth_hdr *new_eth; in encap_v4()
328 struct eth_hdr *old_eth; in encap_v4()
377 struct eth_hdr *new_eth; in decap_v6()
378 struct eth_hdr *old_eth; in decap_v6()
398 struct eth_hdr *new_eth; in decap_v4()
399 struct eth_hdr *old_eth; in decap_v4()
417 struct eth_hdr *eth; in swap_mac_and_send()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c210 struct eth_hdr { struct
282 struct eth_hdr *new_eth; in encap_v6()
283 struct eth_hdr *old_eth; in encap_v6()
327 struct eth_hdr *new_eth; in encap_v4()
328 struct eth_hdr *old_eth; in encap_v4()
377 struct eth_hdr *new_eth; in decap_v6()
378 struct eth_hdr *old_eth; in decap_v6()
398 struct eth_hdr *new_eth; in decap_v4()
399 struct eth_hdr *old_eth; in decap_v4()
417 struct eth_hdr *eth; in swap_mac_and_send()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c210 struct eth_hdr { struct
282 struct eth_hdr *new_eth; in encap_v6()
283 struct eth_hdr *old_eth; in encap_v6()
327 struct eth_hdr *new_eth; in encap_v4()
328 struct eth_hdr *old_eth; in encap_v4()
377 struct eth_hdr *new_eth; in decap_v6()
378 struct eth_hdr *old_eth; in decap_v6()
398 struct eth_hdr *new_eth; in decap_v4()
399 struct eth_hdr *old_eth; in decap_v4()
417 struct eth_hdr *eth; in swap_mac_and_send()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/net/bridge/netfilter/
H A Debt_log.c89 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in ebt_log_packet()
90 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet()
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet()
140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/bridge/netfilter/
H A Debt_log.c89 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in ebt_log_packet()
90 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet()
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet()
140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/bridge/netfilter/
H A Debt_log.c89 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in ebt_log_packet()
90 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet()
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet()
140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/host/lib/include/uhdlib/transport/dpdk/
H A Dudp.hpp47 struct ether_hdr* eth_hdr = rte_pktmbuf_mtod(mbuf, struct ether_hdr*); in fill_ipv4_hdr() local
48 struct ipv4_hdr* ip_hdr = (struct ipv4_hdr*)&eth_hdr[1]; in fill_ipv4_hdr()
76 struct ether_hdr* eth_hdr; in fill_udp_hdr() local
83 eth_hdr = rte_pktmbuf_mtod(mbuf, struct ether_hdr*); in fill_udp_hdr()
84 ip_hdr = (struct ipv4_hdr*)&eth_hdr[1]; in fill_udp_hdr()
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/fpga/usrp3/lib/rfnoc/xport_sv/eth_interface_tb/
H A Deth_ifc_tb.sv357 automatic eth_hdr_t eth_hdr; register
374 udp_raw = build_udp_pkt(eth_hdr,ipv4_hdr,udp_hdr,pay,
380 udp_raw = build_udp_pkt(eth_hdr,ipv4_hdr,udp_hdr,pay,
489 automatic eth_hdr_t eth_hdr; register
613 automatic eth_hdr_t eth_hdr; register
752 automatic eth_hdr_t eth_hdr; register
807 eth_hdr.src_mac = DEF_DEST_MAC_ADDR;
833 automatic eth_hdr_t eth_hdr; register
876 automatic eth_hdr_t eth_hdr; register
963 eth_hdr.src_mac = DEF_DEST_MAC_ADDR;
[all …]
/dports/sysutils/syslinux/syslinux-6.03/core/lwip/src/netif/ppp/
H A Dppp_oe.c301 struct eth_hdr *ethhdr; in pppoe_dispatch_disc_pkt()
311 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_dispatch_disc_pkt()
639 struct eth_hdr *ethhdr; in pppoe_output()
648 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_output()
703 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padi()
919 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padr()
950 struct eth_hdr *ethhdr; in pppoe_send_padt()
960 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_send_padt()
998 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pado()
1035 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pads()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/bridge/
H A Dbr_input.c91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
94 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
96 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
133 br_multicast_querier_exists(br, eth_hdr(skb), mdst)) { in br_handle_frame_finish()
146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
189 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
277 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
282 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
/dports/multimedia/libv4l/linux-5.13-rc2/net/bridge/
H A Dbr_input.c91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
94 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
96 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
133 br_multicast_querier_exists(br, eth_hdr(skb), mdst)) { in br_handle_frame_finish()
146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
189 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
277 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
282 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/bridge/
H A Dbr_input.c91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
94 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
96 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
133 br_multicast_querier_exists(br, eth_hdr(skb), mdst)) { in br_handle_frame_finish()
146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
189 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
277 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
282 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
/dports/multimedia/libv4l/linux-5.13-rc2/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6()
35 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6()
36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6()
35 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6()
36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6()
35 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6()
36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/firmware/usrp3/lwip/lwip-1.3.1/src/netif/ppp/
H A Dppp_oe.c402 struct eth_hdr *ethhdr; in pppoe_dispatch_disc_pkt()
412 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_dispatch_disc_pkt()
753 struct eth_hdr *ethhdr; in pppoe_output()
762 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_output()
809 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padi()
1016 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_padr()
1044 struct eth_hdr *ethhdr; in pppoe_send_padt()
1053 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_send_padt()
1090 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pado()
1126 p = (u8_t*)pb->payload + sizeof (struct eth_hdr); in pppoe_send_pads()
[all …]

12345678910>>...30