Home
last modified time | relevance | path

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

12

/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()
Dipv4ll.c225 memcpy(&seed, ifp->hwaddr, ifp->hwlen); in ipv4ll_start()
227 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed), in ipv4ll_start()
Dcommon.c310 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen, char *buf, size_t buflen) in hwaddr_ntoa() argument
328 p += snprintf(p, 3, "%.2x", hwaddr[i]); in hwaddr_ntoa()
Dipv6.c391 ifp->hwaddr, ifp->hwlen, in ipv6_makestableprivate()
1132 if (memcmp(ifp->hwaddr, allzero, ifp->hwlen) == 0 || in ipv6_addlinklocal()
1133 memcmp(ifp->hwaddr, allone, ifp->hwlen) == 0) in ipv6_addlinklocal()
1168 ap->addr.s6_addr[ 8] = ifp->hwaddr[0]; in ipv6_addlinklocal()
1169 ap->addr.s6_addr[ 9] = ifp->hwaddr[1]; in ipv6_addlinklocal()
1170 ap->addr.s6_addr[10] = ifp->hwaddr[2]; in ipv6_addlinklocal()
1173 ap->addr.s6_addr[13] = ifp->hwaddr[3]; in ipv6_addlinklocal()
1174 ap->addr.s6_addr[14] = ifp->hwaddr[4]; in ipv6_addlinklocal()
1175 ap->addr.s6_addr[15] = ifp->hwaddr[5]; in ipv6_addlinklocal()
1177 memcpy(&ap->addr.s6_addr[8], ifp->hwaddr, 8); in ipv6_addlinklocal()
Ddhcpcd.h70 unsigned char hwaddr[HWADDR_LEN]; member
/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-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-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-domain-list.out1 … sum ok] dhcp6 reply (xid=aa56ce (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
Ddhcpv6-ntp-server.out1 … sum ok] dhcp6 reply (xid=f69b57 (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.c531 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, in address_allocate() argument
545 j += hwaddr[i] + (hwaddr[i] << 8) + (hwaddr[i] << 16); in address_allocate()
648 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type) in config_has_mac() argument
652 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) in config_has_mac()
656 memcmp(conf_addr->hwaddr, hwaddr, len) == 0) in config_has_mac()
665 unsigned char *hwaddr, int hw_len, in find_config() argument
691 if (config_has_mac(config, hwaddr, hw_len, hw_type) && in find_config()
705 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) in find_config()
709 (new = memcmp_masked(conf_addr->hwaddr, hwaddr, hw_len, conf_addr->wildcard_mask)) > count) in find_config()
725 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
808 struct in_addr *addrp, unsigned char *hwaddr, int hw_len,
810 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type);
814 unsigned char *hwaddr, int hw_len,
831 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr,
836 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type,
849 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/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/autotest/client/bin/net/
Dnet_utils.py319 hwaddr = f.read().strip()
321 return hwaddr
324 def set_hwaddr(self, hwaddr): argument
325 utils.system('ifconfig %s hw ether %s' % (self._name, hwaddr))
668 def mac_string_to_binary(hwaddr): argument
681 for c in hwaddr.split(':',6)]])
686 def mac_binary_to_string(hwaddr): argument
698 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.c374 void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *msg, uint8_t *hwaddr, in nfnl_queue_msg_set_hwaddr() argument
381 memcpy(msg->queue_msg_hwaddr, hwaddr, len); in nfnl_queue_msg_set_hwaddr()
466 __ADD(QUEUE_MSG_ATTR_HWADDR, hwaddr)
Dlog_msg_obj.c319 void nfnl_log_msg_set_hwaddr(struct nfnl_log_msg *msg, uint8_t *hwaddr, int len) in nfnl_log_msg_set_hwaddr() argument
324 memcpy(msg->log_msg_hwaddr, hwaddr, len); in nfnl_log_msg_set_hwaddr()
/external/ppp/pppd/
Dsys-solaris.c2151 get_ether_addr(ipaddr, hwaddr) in get_ether_addr() argument
2153 struct sockaddr *hwaddr;
2208 if (!get_hw_addr(ifr->ifr_name, ina, hwaddr)) {
2222 get_hw_addr_dlpi(name, hwaddr) in get_hw_addr_dlpi() argument
2224 struct sockaddr *hwaddr;
2272 hwaddr->sa_family = AF_UNSPEC;
2273 memcpy(hwaddr->sa_data, adrp, adrlen);
2281 get_hw_addr(name, ina, hwaddr) in get_hw_addr() argument
2284 struct sockaddr *hwaddr;
2300 *hwaddr = req.arp_ha;
[all …]

12