Home
last modified time | relevance | path

Searched refs:hw_addr (Results 1 – 21 of 21) sorted by relevance

/external/autotest/client/deps/lansim/src/py/
Dtools.py6 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))
Dhost.py29 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/
Darp.c147 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/
Dof10_p3295-vv.out28 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 …]
Dof10_7050sx_bsn-vv.out32 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 …]
Dof10_pf5240-vv.out30 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'
Dof10_s4810-vvvv.out26 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/
Difconfig.c425 char *hw_addr, *ptr, *p; in ifconfig_main() local
440 hw_addr = *++argv; in ifconfig_main()
443 while (*hw_addr && (p-ptr) < count) { in ifconfig_main()
446 if (*hw_addr == ':') hw_addr++; in ifconfig_main()
447 sscanf(hw_addr, "%2x%n", &val, &len); in ifconfig_main()
449 hw_addr += len; in ifconfig_main()
453 if ((p-ptr) != count || *hw_addr) in ifconfig_main()
/external/arm-trusted-firmware/drivers/allwinner/
Dsunxi_rsb.c131 int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr) in rsb_assign_runtime_address() argument
133 mmio_write_32(SUNXI_R_RSB_BASE + RSB_SADDR, hw_addr | (rt_addr << 16)); in rsb_assign_runtime_address()
/external/wpa_supplicant_8/src/common/
Ddhcp.h36 u8 hw_addr[16]; member
55 u8 hw_addr[16]; member
/external/arm-trusted-firmware/include/drivers/allwinner/
Dsunxi_rsb.h15 int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr);
/external/libpcap/pcap/
Dnflog.h65 uint8_t hw_addr[8]; /* address, up to 8 bytes */ member
/external/iptables/include/linux/netfilter_ipv4/
Dip_queue.h32 unsigned char hw_addr[8]; /* Hardware address */ member
/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_log.h28 __u8 hw_addr[8]; member
Dnfnetlink_queue.h26 __u8 hw_addr[8]; member
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_log.h28 __u8 hw_addr[8]; member
Dnfnetlink_queue.h26 __u8 hw_addr[8]; member
/external/wpa_supplicant_8/src/ap/
Dfils_hlp.c230 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()
Ddhcp_snoop.c105 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp()
/external/libnl/lib/netfilter/
Dlog_msg.c118 nfnl_log_msg_set_hwaddr(msg, hw->hw_addr, ntohs(hw->hw_addrlen)); in nfnlmsg_log_msg_parse()
Dqueue_msg.c118 nfnl_queue_msg_set_hwaddr(msg, hw->hw_addr, in nfnlmsg_queue_msg_parse()