/external/autotest/client/deps/lansim/src/py/ |
D | tools.py | 6 def inet_hwton(hw_addr): argument 13 if len(hw_addr) == 6: # Already in network format. 14 return hw_addr 15 if len(hw_addr) == 12: # Hex format without : in between. 16 return ''.join(chr(int(hw_addr[i:i + 2], 16)) for i in range(0, 12, 2)) 17 if len(hw_addr) == 17: # Hex format with : in between. 18 return ''.join(chr(int(hw_addr[i:i + 2], 16)) for i in range(0, 17, 3))
|
D | host.py | 29 def __init__(self, sim, hw_addr, ip_addr): argument 37 self._hw_addr = hw_addr 39 self._bin_hw_addr = tools.inet_hwton(hw_addr) 78 self.add_arp(hw_addr=pkt.arp.sha, ip_addr=pkt.arp.spa) 95 def add_arp(self, hw_addr, ip_addr): argument 104 self._arp_cache[ip_addr] = hw_addr
|
/external/toybox/toys/pending/ |
D | arp.c | 147 char *p = ptr, *hw_addr = req.arp_ha.sa_data; in set_entry() local 149 while (*hw_addr && (p-ptr) < 6) { in set_entry() 152 if (*hw_addr == ':') hw_addr++; in set_entry() 153 if (!sscanf(hw_addr, "%2x%n", &val, &len)) break; in set_entry() 154 hw_addr += len; in set_entry() 158 if ((p-ptr) != 6 || *hw_addr) in set_entry() 212 char ip[128], hw_addr[128], mask[12], dev[128], *host_ip = NULL, *buf; in arp_main() local 257 &h_type, &flag, hw_addr, mask, dev )) != 6) break; in arp_main() 281 } else printf(" %s [%s]", hw_addr, hwtype[i].name); in arp_main()
|
/external/tcpdump/tests/ |
D | of10_p3295-vv.out | 28 port_no 42, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/42' 35 port_no 33, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/33' 42 port_no 36, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/36' 49 port_no 31, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/31' 56 port_no 48, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/48' 63 port_no 40, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/40' 70 port_no 1, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/1' 77 port_no 28, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/28' 84 port_no 20, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/20' 91 port_no 10, hw_addr 08:9e:01:62:d5:f4, name 'ge-1/1/10' [all …]
|
D | of10_7050sx_bsn-vv.out | 32 port_no 16, hw_addr 00:1c:73:7d:28:1f, name 'Ethernet16' 39 port_no 20, hw_addr 00:1c:73:7d:28:23, name 'Ethernet20' 46 port_no 18, hw_addr 00:1c:73:7d:28:21, name 'Ethernet18' 53 port_no 22, hw_addr 00:1c:73:7d:28:25, name 'Ethernet22' 60 port_no 17, hw_addr 00:1c:73:7d:28:20, name 'Ethernet17' 67 port_no 21, hw_addr 00:1c:73:7d:28:24, name 'Ethernet21' 74 port_no 19, hw_addr 00:1c:73:7d:28:22, name 'Ethernet19' 81 port_no 23, hw_addr 00:1c:73:7d:28:26, name 'Ethernet23' 151 port_no 16, hw_addr 00:1c:73:7d:28:1f, name 'Ethernet16' 158 port_no 20, hw_addr 00:1c:73:7d:28:23, name 'Ethernet20' [all …]
|
D | of10_pf5240-vv.out | 30 port_no 1, hw_addr 00:25:5c:ab:0c:87, name 'GBE0/1' 37 port_no 2, hw_addr 00:25:5c:ab:0c:47, name 'GBE0/2' 44 port_no 3, hw_addr 00:25:5c:ab:0c:c7, name 'GBE0/3' 51 port_no 4, hw_addr 00:25:5c:ab:0c:27, name 'GBE0/4' 58 port_no 5, hw_addr 00:25:5c:ab:0c:a7, name 'GBE0/5' 65 port_no 6, hw_addr 00:25:5c:ab:0c:67, name 'GBE0/6' 72 port_no 7, hw_addr 00:25:5c:ab:0c:e7, name 'GBE0/7' 79 port_no 8, hw_addr 00:25:5c:ab:0c:17, name 'GBE0/8'
|
D | of10_s4810-vvvv.out | 26 port_no 1, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/0' 33 port_no 2, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/1' 66 port_no 1, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/0' 73 port_no 2, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/1' 1294 port_no 13, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/12' 1301 port_no 16, hw_addr 00:01:e8:8a:e0:e4, name 'Te 0/15'
|
/external/toybox/toys/net/ |
D | ifconfig.c | 424 char *hw_addr, *ptr, *p; in ifconfig_main() local 439 hw_addr = *++argv; in ifconfig_main() 442 while (*hw_addr && (p-ptr) < count) { in ifconfig_main() 445 if (*hw_addr == ':') hw_addr++; in ifconfig_main() 446 sscanf(hw_addr, "%2x%n", &val, &len); in ifconfig_main() 448 hw_addr += len; in ifconfig_main() 452 if ((p-ptr) != count || *hw_addr) in ifconfig_main()
|
/external/wpa_supplicant_8/src/common/ |
D | dhcp.h | 36 u8 hw_addr[16]; member 55 u8 hw_addr[16]; member
|
/external/libpcap/pcap/ |
D | nflog.h | 65 uint8_t hw_addr[8]; /* address, up to 8 bytes */ member
|
/external/iptables/include/linux/netfilter_ipv4/ |
D | ip_queue.h | 32 unsigned char hw_addr[8]; /* Hardware address */ member
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
D | nfnetlink_log.h | 28 __u8 hw_addr[8]; member
|
D | nfnetlink_queue.h | 26 __u8 hw_addr[8]; member
|
/external/libnl/include/linux-private/linux/netfilter/ |
D | nfnetlink_queue.h | 29 __u8 hw_addr[8]; member
|
D | nfnetlink_log.h | 31 __u8 hw_addr[8]; member
|
/external/wpa_supplicant_8/src/ap/ |
D | fils_hlp.c | 230 msgtype, rapid_commit, MAC2STR(dhcp->hw_addr)); in fils_dhcp_handler() 232 sta = ap_get_sta(hapd, dhcp->hw_addr); in fils_dhcp_handler() 236 MACSTR, MAC2STR(dhcp->hw_addr)); in fils_dhcp_handler()
|
D | dhcp_snoop.c | 105 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp()
|
/external/u-boot/drivers/net/ |
D | e1000.h | 51 writel((value), ((a)->hw_addr + E1000_##reg)) 53 readl((a)->hw_addr + E1000_##reg) 55 writel((value), ((a)->hw_addr + E1000_##reg + ((offset) << 2))) 57 readl((a)->hw_addr + E1000_##reg + ((offset) << 2)) 1091 uint8_t *hw_addr; member
|
D | e1000.c | 5554 hw->hw_addr = dm_pci_map_bar(devno, PCI_BASE_ADDRESS_0, in e1000_init_one() 5557 hw->hw_addr = pci_map_bar(devno, PCI_BASE_ADDRESS_0, in e1000_init_one()
|
/external/autotest/client/bin/net/ |
D | net_utils_unittest.py | 713 hw_addr = '00:0e:0c:c3:7d:a8' 714 f.read.expect_call().and_return(' ' + hw_addr + ' ') 716 self.assertEquals(mock_netif.get_hwaddr(), hw_addr) 722 hw_addr = '00:0e:0c:c3:7d:a8' 724 hw_addr) 726 mock_netif.set_hwaddr(hw_addr)
|
/external/libnl/lib/netfilter/ |
D | log_msg.c | 129 nfnl_log_msg_set_hwaddr(msg, hw->hw_addr, ntohs(hw->hw_addrlen)); in nfnlmsg_log_msg_parse()
|
D | queue_msg.c | 129 nfnl_queue_msg_set_hwaddr(msg, hw->hw_addr, in nfnlmsg_queue_msg_parse()
|