/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_pcap.c | 31 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 …]
|
D | l2_packet_freebsd.c | 60 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()
|
D | l2_packet_winpcap.c | 76 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()
|
D | l2_packet_ndis.c | 96 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/ |
D | ether_ntohost.c | 113 unsigned eth [sizeof(*e)]; in parse_ether_buf() local 128 if (sscanf(str, fmt, ð[0], ð[1], ð[2], ð[3], ð[4], ð[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,ð)) in init_ethers() 178 memcpy(&e->eth_addr, ð, ETHER_ADDR_LEN); in init_ethers()
|
/external/bcc/src/lua/bpf/spec/ |
D | codegen_spec.lua | 184 return eth.ip.tos -- constant expression will fold 195 return eth.ip.udp.src_port -- need to skip variable-length header 212 local ptr = eth.ip.udp.data + 1 231 local ptr = eth.ip.udp.data 316 mem[0] = eth.ip.tos 332 mem[eth.ip.tos] = 5 350 local v = eth.ip.tos 371 mem.b = eth.ip.tos 433 return array_map[eth.ip.tos] 474 array_map[0] = eth.ip.tos [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | xdping_kern.c | 63 struct ethhdr *eth = data; in icmp_check() local 67 if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end) in icmp_check() 70 if (eth->h_proto != bpf_htons(ETH_P_IP)) in icmp_check() 73 iph = data + sizeof(*eth); in icmp_check() 81 icmph = data + sizeof(*eth) + sizeof(*iph); in icmp_check() 95 struct ethhdr *eth = data; in xdping_client() local 109 iph = data + sizeof(*eth); in xdping_client() 110 icmph = data + sizeof(*eth) + sizeof(*iph); in xdping_client() 158 struct ethhdr *eth = data; in xdping_server() local 169 iph = data + sizeof(*eth); in xdping_server() [all …]
|
D | test_pkt_access.c | 55 struct ethhdr *eth = (struct ethhdr *)(data); in test_pkt_access() local 60 if (eth + 1 > data_end) in test_pkt_access() 63 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access() 64 struct iphdr *iph = (struct iphdr *)(eth + 1); in test_pkt_access() 71 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in test_pkt_access() 72 struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1); in test_pkt_access()
|
D | test_xdp_vlan.c | 57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame() argument 62 offset = sizeof(*eth); in parse_eth_frame() 64 if ((void *)eth + offset + (2*sizeof(struct _vlan_hdr)) > data_end) in parse_eth_frame() 67 eth_type = eth->h_proto; in parse_eth_frame() 74 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 87 vlan_hdr = (void *)eth + offset; in parse_eth_frame()
|
D | test_queue_stack_map.h | 34 struct ethhdr *eth = (struct ethhdr *)(data); in _test() local 38 if (eth + 1 > data_end) in _test() 41 struct iphdr *iph = (struct iphdr *)(eth + 1); in _test()
|
D | test_sk_lookup_kern.c | 61 struct ethhdr *eth = (struct ethhdr *)(data); in bpf_sk_lookup_test0() local 67 if (eth + 1 > data_end) in bpf_sk_lookup_test0() 70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0()
|
D | bpf_flow.c | 157 struct ethhdr *eth, _eth; in parse_ip_proto() local 201 eth = bpf_flow_dissect_get_header(skb, sizeof(*eth), in parse_ip_proto() 203 if (!eth) in parse_ip_proto() 206 keys->thoff += sizeof(*eth); in parse_ip_proto() 208 return parse_eth_proto(skb, eth->h_proto); in parse_ip_proto()
|
D | test_tc_tunnel.c | 205 struct ethhdr eth; in encap_ipv4() local 207 if (bpf_skb_load_bytes(skb, 0, ð, sizeof(eth)) < 0) in encap_ipv4() 209 eth.h_proto = bpf_htons(ETH_P_IP); in encap_ipv4() 210 if (bpf_skb_store_bytes(skb, 0, ð, sizeof(eth), 0) < 0) in encap_ipv4()
|
/external/autotest/client/tests/pktgen/ |
D | pktgen.py | 8 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))
|
D | control | 31 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/prog_tests/ |
D | flow_dissector.c | 39 struct ethhdr eth; member 45 struct ethhdr eth; member 52 struct ethhdr eth; member 60 struct ethhdr eth; member 66 struct ethhdr eth; member 78 struct ethhdr eth; member 107 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 128 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 148 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), 170 .eth.h_proto = __bpf_constant_htons(ETH_P_8021AD), [all …]
|
/external/iptables/extensions/ |
D | generic.txlate | 23 iptables-translate -A FORWARD -i '*' -o 'eth*foo' 24 nft add rule ip filter FORWARD iifname "\*" oifname "eth\*foo" counter 27 iptables-translate -A FORWARD -i 'eth*foo*+' -o 'eth++' 28 nft add rule ip filter FORWARD iifname "eth\*foo\**" oifname "eth+*" counter
|
D | iptables.t | 4 -i eth+ -o alongifacename+;=;OK 6 ! -o eth+;=;OK
|
D | libarpt_CLASSIFY.t | 4 ! -o eth+ -d 1.2.3.4/24 -j CLASSIFY --set-class 0:0;-j CLASSIFY ! -o eth+ -d 1.2.3.0/24 --set-class…
|
/external/autotest/client/cros/update_engine/ |
D | update_engine_test.py | 51 for eth in self._NETWORK_INTERFACES: 52 utils.run(['ifconfig', eth, 'up'], ignore_status=True) 79 for eth in self._NETWORK_INTERFACES: 80 result = utils.run(['ifconfig', eth, 'down'],
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | txring_overwrite.c | 44 struct ethhdr *eth; in build_packet() local 50 eth = buffer; in build_packet() 51 eth->h_proto = htons(ETH_P_IP); in build_packet() 53 off += sizeof(*eth); in build_packet()
|
D | psock_tpacket.c | 129 struct ethhdr *eth = pay; in test_payload() local 137 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload() 139 "type: 0x%x!\n", ntohs(eth->h_proto)); in test_payload() 147 struct ethhdr *eth = pay; in create_payload() local 148 struct iphdr *ip = pay + sizeof(*eth); in create_payload() 157 eth->h_proto = htons(ETH_P_IP); in create_payload() 160 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload() 167 ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); in create_payload() 172 memset(pay + sizeof(*eth) + sizeof(*ip), in create_payload()
|
D | fib_nexthop_multiprefix.sh | 113 ip -netns h${i} li set r1h${i} netns r1 name eth${i} up 117 ip -netns r1 addr add dev eth${i} 172.16.10${i}.254/24 118 ip -netns r1 -6 addr add dev eth${i} 2001:db8:10${i}::64/64 159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu}
|
/external/scapy/scapy/layers/ |
D | lltd.py | 95 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/bpf/ |
D | test_progs.h | 87 struct ethhdr eth; member 95 struct ethhdr eth; member
|