Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 49) sorted by relevance

12

/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c31 eth_t *eth; member
55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet()
56 if (!l2->eth) { in l2_packet_init_libdnet()
63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
67 eth_close(l2->eth); in l2_packet_init_libdnet()
68 l2->eth = NULL; in l2_packet_init_libdnet()
82 struct l2_ethhdr *eth; in l2_packet_send() local
91 ret = eth_send(l2->eth, buf, len); in l2_packet_send()
94 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
95 eth = os_malloc(mlen); in l2_packet_send()
[all …]
Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local
61 if (eth == NULL) in l2_packet_send()
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
65 eth->h_proto = htons(proto); in l2_packet_send()
66 os_memcpy(eth + 1, buf, len); in l2_packet_send()
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
68 os_free(eth); in l2_packet_send()
Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; in l2_packet_send() local
84 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
85 eth = os_malloc(mlen); in l2_packet_send()
86 if (eth == NULL) in l2_packet_send()
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
91 eth->h_proto = htons(proto); in l2_packet_send()
92 os_memcpy(eth + 1, buf, len); in l2_packet_send()
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
94 os_free(eth); in l2_packet_send()
Dl2_packet_ndis.c96 struct l2_ethhdr *eth; in l2_packet_send() local
116 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
117 eth = os_malloc(mlen); in l2_packet_send()
118 if (eth == NULL) in l2_packet_send()
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
123 eth->h_proto = htons(proto); in l2_packet_send()
124 os_memcpy(eth + 1, buf, len); in l2_packet_send()
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send()
127 os_free(eth); in l2_packet_send()
/external/tcpdump/win32/src/
Dether_ntohost.c113 unsigned eth [sizeof(*e)]; in parse_ether_buf() local
128 if (sscanf(str, fmt, &eth[0], &eth[1], &eth[2], &eth[3], &eth[4], &eth[5]) != ETHER_ADDR_LEN) in parse_ether_buf()
140 e->octet[i] = eth[i]; in parse_ether_buf()
169 ether_address eth; in init_ethers() local
171 if (!parse_ether_buf(buf,&name,&eth)) in init_ethers()
178 memcpy(&e->eth_addr, &eth, ETHER_ADDR_LEN); in init_ethers()
/external/autotest/client/tests/pktgen/
Dpktgen.py8 def execute(self, eth='eth0', count=50000, clone_skb=1, argument
17 logging.info('Adding %s (iteration %d)' % (eth, i))
21 self.pgset('add_device ' + eth)
25 logging.info('Configuring %s (iteration %d)' % (eth, i))
27 self.ethdev='/proc/net/pktgen/' + eth
42 output = os.path.join(self.resultsdir, eth)
43 logging.info('Completed %s (iteration %d)' % (eth, i))
Dcontrol31 job.run_test('pktgen', eth=interface, count=count, clone_skb=0,
33 job.run_test('pktgen', eth=interface, count=count, clone_skb=1,
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_pkt_access.c28 struct ethhdr *eth = (struct ethhdr *)(data); in process() local
33 if (eth + 1 > data_end) in process()
36 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in process()
37 struct iphdr *iph = (struct iphdr *)(eth + 1); in process()
44 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in process()
45 struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1); in process()
Dtest_xdp.c218 struct ethhdr *eth = data; in _xdp_tx_iptunnel() local
221 if (eth + 1 > data_end) in _xdp_tx_iptunnel()
224 h_proto = eth->h_proto; in _xdp_tx_iptunnel()
Dtest_l4lb.c329 struct eth_hdr *eth = pkt_start; in process_packet() local
449 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
458 struct eth_hdr *eth = data; in balancer_ingress() local
465 eth_proto = eth->eth_proto; in balancer_ingress()
Dtest_progs.c45 struct ethhdr eth; member
49 .eth.h_proto = bpf_htons(ETH_P_IP),
58 struct ethhdr eth; member
62 .eth.h_proto = bpf_htons(ETH_P_IPV6),
/external/scapy/scapy/layers/
Dlltd.py95 eth = self.underlayer
97 pkt = (pkt[:4] + eth.fields_desc[0].i2m(eth, eth.dst) +
100 pkt = (pkt[:10] + eth.fields_desc[1].i2m(eth, eth.src) +
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c141 struct ethhdr *eth = pay; in test_payload() local
149 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload()
151 "type: 0x%x!\n", ntohs(eth->h_proto)); in test_payload()
159 struct ethhdr *eth = pay; in create_payload() local
160 struct iphdr *ip = pay + sizeof(*eth); in create_payload()
169 eth->h_proto = htons(ETH_P_IP); in create_payload()
172 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload()
179 ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); in create_payload()
184 memset(pay + sizeof(*eth) + sizeof(*ip), in create_payload()
Dmsg_zerocopy.c394 struct ethhdr eth; in do_tx() local
409 memset(eth.h_dest, 0x06, ETH_ALEN); in do_tx()
410 memset(eth.h_source, 0x02, ETH_ALEN); in do_tx()
411 eth.h_proto = htons(proto); in do_tx()
412 iov[0].iov_base = &eth; in do_tx()
413 iov[0].iov_len = sizeof(eth); in do_tx()
/external/kernel-headers/original/uapi/linux/
Dif_arcnet.h82 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/external/libpcap/msdos/
Dpktdrvr.c444 PUBLIC BOOL PktTransmit (const void *eth, int len) in PktTransmit() argument
453 dosmemput (eth, len, realBase+pktTxBuf); in PktTransmit()
458 memcpy ((void*)(realBase+pktTxBuf), eth, len); in PktTransmit()
463 memcpy (&pktTxBuf, eth, len); in PktTransmit()
468 reg.r_ds = FP_SEG (eth); in PktTransmit()
469 reg.r_si = FP_OFF (eth); in PktTransmit()
Dpktdrvr.h131 extern BOOL PktTransmit (const void *eth, int len);
/external/iputils/Modules/
Dpg3.c242 __u8 *eth; in fill_packet() local
256 eth = (__u8 *) skb_push(skb, 14); in fill_packet()
261 memcpy(eth, hh, 14); in fill_packet()
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c1704 const struct ether_header *eth; in hostapd_data_test_rx() local
1712 eth = (const struct ether_header *) buf; in hostapd_data_test_rx()
1713 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx()
1714 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx()
1727 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); in hostapd_data_test_rx()
1777 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local
1804 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx()
1805 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1806 os_memcpy(eth->ether_shost, src, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1807 eth->ether_type = htons(ETHERTYPE_IP); in hostapd_ctrl_iface_data_test_tx()
[all …]
/external/ltp/testcases/network/stress/route/
Droute6-rmmod160 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
Droute4-rmmod164 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
/external/ltp/testcases/lib/
Dtest_net.sh160 for eth in $(tst_get_ifaces $type); do
162 local addr_path="/sys/class/net/${eth}/address"
/external/libxkbcommon/xkbcommon/test/data/symbols/
Dca152 key <AC03> { [ d, D, eth, ETH ] };
240 key <AC03> { [ eth, ETH ] };
394 eth, ETH ] };
/external/wpa_supplicant_8/src/drivers/
Ddriver_atheros.c1616 struct l2_ethhdr *eth; in atheros_send_eapol() local
1636 eth = (struct l2_ethhdr *) bp; in atheros_send_eapol()
1637 os_memcpy(eth->h_dest, addr, ETH_ALEN); in atheros_send_eapol()
1638 os_memcpy(eth->h_source, own_addr, ETH_ALEN); in atheros_send_eapol()
1639 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol()
1640 os_memcpy(eth + 1, data, data_len); in atheros_send_eapol()
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DHTMLEntities.properties113 eth=240 key

12