Home
last modified time | relevance | path

Searched refs:hwaddr (Results 1 – 25 of 53) sorted by relevance

123

/external/dhcpcd-6.8.2/
Difaddrs.c42 struct sockaddr_ll *hwaddr = NULL; in get_interface() local
82 hwaddr = malloc(sizeof(struct sockaddr_ll)); in get_interface()
83 if (hwaddr) { in get_interface()
84 memset(hwaddr, 0, sizeof(struct sockaddr_ll)); in get_interface()
85 hwaddr->sll_family = family; in get_interface()
87 ifc_get_ifindex(ifa->ifa_name, &hwaddr->sll_ifindex); in get_interface()
88 hwaddr->sll_hatype = ARPHRD_ETHER; in get_interface()
89 hwaddr->sll_halen = ETH_ALEN; in get_interface()
90 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN); in get_interface()
93 ifa->ifa_addr = (struct sockaddr *)hwaddr; in get_interface()
Ddhcpcd.c477 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid), in configure_interface1()
989 memcpy(iff->hwaddr, ifp->hwaddr, iff->hwlen); in dhcpcd_handleinterface()
1016 const uint8_t *hwaddr, uint8_t hwlen) in dhcpcd_handlehwaddr() argument
1019 char buf[sizeof(ifp->hwaddr) * 3]; in dhcpcd_handlehwaddr()
1025 if (hwlen > sizeof(ifp->hwaddr)) { in dhcpcd_handlehwaddr()
1031 if (ifp->hwlen == hwlen && memcmp(ifp->hwaddr, hwaddr, hwlen) == 0) in dhcpcd_handlehwaddr()
1035 hwaddr_ntoa(hwaddr, hwlen, buf, sizeof(buf))); in dhcpcd_handlehwaddr()
1037 memcpy(ifp->hwaddr, hwaddr, hwlen); in dhcpcd_handlehwaddr()
/external/tcpdump/tests/
Ddhcpv6-ia-ta.out1 …5.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=28b040 (client-ID hwaddr type 1 00010203040…
2 …2:f920:84c4:88cc pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
3 …47: [udp sum ok] dhcp6 request (xid=2b0e45 (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
4 …2:f920:84c4:88cc pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
Ddhcpv6-ia-pd.out1 …5.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=e1e093 (client-ID hwaddr type 1 00010203040…
2 …a00:1:1:100::/56 pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
3 …47: [udp sum ok] dhcp6 request (xid=12b08a (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
4 …a00:1:1:100::/56 pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
Ddhcpv6-AFTR-Name-RFC6334.out1 …5.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=d81eb8 (client-ID hwaddr type 1 00010203040…
2 … 2a00:1:1:100::/56 pltime:250 vltime:300)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
3 …47: [udp sum ok] dhcp6 request (xid=1e291d (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
4 … 2a00:1:1:100::/56 pltime:250 vltime:300)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
Ddhcpv6-ia-na.out1 …5.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=90b45c (client-ID hwaddr type 1 00010203040…
2 …6:b22e:c440:acdf pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
3 …47: [udp sum ok] dhcp6 request (xid=2ffdd1 (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
4 …6:b22e:c440:acdf pltime:4500 vltime:7200)) (client-ID hwaddr type 1 000102030405) (server-ID hwadd…
Ddhcpv6-mud.out1 …ba27:ebff:feb8:53c8 (relay-message (dhcp6 solicit (xid=78244b (client-ID hwaddr/time type 1 time 5…
2 …ba27:ebff:feb8:53c8 (relay-message (dhcp6 solicit (xid=78244b (client-ID hwaddr/time type 1 time 5…
3 …ba27:ebff:feb8:53c8 (relay-message (dhcp6 solicit (xid=78244b (client-ID hwaddr/time type 1 time 5…
4 …ba27:ebff:feb8:53c8 (relay-message (dhcp6 solicit (xid=78244b (client-ID hwaddr/time type 1 time 5…
5 …ba27:ebff:feb8:53c8 (relay-message (dhcp6 solicit (xid=78244b (client-ID hwaddr/time type 1 time 5…
Ddhcpv6-ntp-server.out1 … sum ok] dhcp6 reply (xid=f69b57 (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
Ddhcpv6-domain-list.out1 … sum ok] dhcp6 reply (xid=aa56ce (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
Ddhcpv6-sip-server-d.out1 … sum ok] dhcp6 reply (xid=6890d8 (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
/external/dnsmasq/src/
Ddhcp.c536 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, in address_allocate() argument
550 j += hwaddr[i] + (hwaddr[i] << 8) + (hwaddr[i] << 16); in address_allocate()
653 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type) in config_has_mac() argument
657 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) in config_has_mac()
661 memcmp(conf_addr->hwaddr, hwaddr, len) == 0) in config_has_mac()
670 unsigned char *hwaddr, int hw_len, in find_config() argument
696 if (config_has_mac(config, hwaddr, hw_len, hw_type) && in find_config()
710 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) in find_config()
714 (new = memcmp_masked(conf_addr->hwaddr, hwaddr, hw_len, conf_addr->wildcard_mask)) > count) in find_config()
730 unsigned char hwaddr[ETHER_ADDR_LEN]; in dhcp_read_ethers() local
[all …]
Dlease.c155 lease->hwaddr, lease->hwaddr_len, lease->hwaddr_type, NULL)) && in lease_update_from_configs()
197 ourprintf(&err, "%.2x", lease->hwaddr[i]); in lease_update_file()
292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, in lease_find_by_client() argument
308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0) in lease_find_by_client()
377 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, in lease_set_hwaddr() argument
382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) in lease_set_hwaddr()
384 memcpy(lease->hwaddr, hwaddr, hw_len); in lease_set_hwaddr()
Ddnsmasq.h420 unsigned char hwaddr[DHCP_CHADDR_MAX]; member
440 unsigned char hwaddr[DHCP_CHADDR_MAX]; member
454 struct hwaddr_config *hwaddr; member
526 unsigned char hwaddr[DHCP_CHADDR_MAX]; member
777 struct in_addr *addrp, unsigned char *hwaddr, int hw_len,
779 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type);
783 unsigned char *hwaddr, int hw_len,
800 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr,
805 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type,
818 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr,
Dhelper.c46 unsigned char hwaddr[DHCP_CHADDR_MAX]; member
136 p += sprintf(p, "%.2x", data.hwaddr[i]); in create_helper()
348 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len); in queue_script()
/external/ltp/testcases/network/stress/ns-tools/
Dget_ifname80 hwaddr=`echo $hwaddrs | cut -d ' ' -f $field`
81 if [ x${hwaddr} = x ]; then
93 ifname=`grep -1 -i $hwaddr $ip_link_show_out | head -n 1 | awk '{ print $2 }' | sed "s/://"` 2>/dev…
98 echo "Interface which has $hwaddr is not found." >&2
/external/syslinux/core/lwip/src/core/ipv4/
Dautoip.c90 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \
91 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \
92 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \
93 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \
103 htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \
104 ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8)))
239 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, &ethbroadcast, in autoip_arp_probe()
240 (struct eth_addr *)netif->hwaddr, IP_ADDR_ANY, &ethzero, in autoip_arp_probe()
252 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, &ethbroadcast, in autoip_arp_announce()
253 (struct eth_addr *)netif->hwaddr, &netif->autoip->llipaddr, &ethzero, in autoip_arp_announce()
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c96 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) in openInterface() argument
135 if (hwaddr) { in openInterface()
142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in openInterface()
148 if (NOT_UNICAST(hwaddr)) { in openInterface()
Dpppoe-discovery.c101 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) in openInterface() argument
137 if (hwaddr) { in openInterface()
142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in openInterface()
150 if (NOT_UNICAST(hwaddr)) { in openInterface()
/external/syslinux/gpxe/src/util/
Dhijack.c191 unsigned char *hwaddr = ether_header->ether_shost; in hijack_filter_ethernet() local
197 "ether host %02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], in hijack_filter_ethernet()
198 hwaddr[1], hwaddr[2], hwaddr[3], hwaddr[4], hwaddr[5] ); in hijack_filter_ethernet()
/external/syslinux/core/lwip/src/netif/
Dethernetif.c93 netif->hwaddr[0] = ;
95 netif->hwaddr[5] = ;
310 ethernetif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
Detharp.c505 etharp_send_ip(netif, p, (struct eth_addr*)(netif->hwaddr), ethaddr);
906 return etharp_send_ip(netif, q, (struct eth_addr*)(netif->hwaddr),
920 return etharp_send_ip(netif, q, (struct eth_addr*)(netif->hwaddr), dest);
959 struct eth_addr * srcaddr = (struct eth_addr *)netif->hwaddr;
1201 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, &ethbroadcast,
1202 (struct eth_addr *)netif->hwaddr, &netif->ip_addr, &ethzero,
1291 etharp_arp_input(netif, (struct eth_addr*)(netif->hwaddr), p);
/external/autotest/client/bin/net/
Dnet_utils.py321 hwaddr = f.read().strip()
323 return hwaddr
326 def set_hwaddr(self, hwaddr): argument
327 bin_utils.system('ifconfig %s hw ether %s' % (self._name, hwaddr))
670 def mac_string_to_binary(hwaddr): argument
683 for c in hwaddr.split(':',6)]])
688 def mac_binary_to_string(hwaddr): argument
700 return "%02x:%02x:%02x:%02x:%02x:%02x" % tuple(map(ord,hwaddr))
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py194 def set_hwaddr(self, hwaddr): argument
204 tools.inet_hwton(hwaddr)))
211 hwaddr = property(get_hwaddr, set_hwaddr) variable in TunTap
/external/autotest/server/site_tests/network_StressServoEthernetPlug/
Dnetwork_StressServoEthernetPlug.py79 (iface, hwaddr) = iface_start.groups()
85 eth_dict[iface] = {self.ETH_MAC: hwaddr, self.ETH_IP: ipaddress}
/external/libnl/lib/netfilter/
Dqueue_msg_obj.c377 void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *msg, uint8_t *hwaddr, in nfnl_queue_msg_set_hwaddr() argument
384 memcpy(msg->queue_msg_hwaddr, hwaddr, len); in nfnl_queue_msg_set_hwaddr()
469 __ADD(QUEUE_MSG_ATTR_HWADDR, hwaddr)

123