/external/dhcpcd/ |
D | ifaddrs.c | 41 struct sockaddr_ll *hwaddr = NULL; in get_interface() local 81 hwaddr = malloc(sizeof(struct sockaddr_ll)); in get_interface() 82 if (hwaddr) { in get_interface() 83 memset(hwaddr, 0, sizeof(struct sockaddr_ll)); in get_interface() 84 hwaddr->sll_family = family; in get_interface() 86 hwaddr->sll_hatype = ARPHRD_ETHER; in get_interface() 87 hwaddr->sll_halen = ETH_ALEN; in get_interface() 88 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN); in get_interface() 91 ifa->ifa_addr = (struct sockaddr *)hwaddr; in get_interface()
|
D | arp.c | 63 memcpy(p, iface->hwaddr, iface->hwlen); in send_arp() 116 const char *hwaddr; in handle_arp_packet() local 147 memcmp(hw_s, iface->hwaddr, iface->hwlen) == 0) in handle_arp_packet() 161 hwaddr = hwaddr_ntoa((unsigned char *)hw_s, in handle_arp_packet() 165 iface->name, inet_ntoa(ina), hwaddr); in handle_arp_packet() 166 if (select_profile(iface, hwaddr) == -1 && in handle_arp_packet()
|
D | if-bsd.c | 326 unsigned char *hwaddr; in manage_link() local 426 hwaddr = xmalloc(sdl.sdl_alen); in manage_link() 427 memcpy(hwaddr, LLADDR(&sdl), in manage_link() 429 handle_hwaddr(ifname, hwaddr, in manage_link()
|
D | duid.c | 89 memcpy(p, iface->hwaddr, iface->hwlen); in get_duid()
|
D | dhcpcd.c | 297 memcpy(&xid, (iface->hwaddr + iface->hwlen) - sizeof(xid), in dhcp_xid() 731 memcmp(dhcp->chaddr, iface->hwaddr, iface->hwlen)) in handle_dhcp_packet() 842 memcpy(iface->clientid + 2, iface->hwaddr, in configure_interface1() 851 hwaddr_ntoa(iface->hwaddr, iface->hwlen)); in configure_interface1() 1334 memcpy(ifn->hwaddr, ifp->hwaddr, ifn->hwlen); in handle_interface() 1348 handle_hwaddr(const char *ifname, unsigned char *hwaddr, size_t hwlen) in handle_hwaddr() argument 1366 memcpy(ifp->hwaddr, hwaddr, hwlen); in handle_hwaddr() 1373 hwaddr_ntoa(ifp->hwaddr, ifp->hwlen)); in handle_hwaddr() 1379 free(hwaddr); in handle_hwaddr()
|
D | net.c | 146 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen) in hwaddr_ntoa() argument 154 p += snprintf(p, 3, "%.2x", hwaddr[i]); in hwaddr_ntoa() 478 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen); in discover_interfaces() 484 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen); in discover_interfaces()
|
D | dhcpcd.h | 115 unsigned char hwaddr[HWADDR_LEN]; member
|
/external/tcpdump/tests/ |
D | dhcpv6-ia-pd.out | 1 …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…
|
D | dhcpv6-ia-ta.out | 1 …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…
|
D | dhcpv6-AFTR-Name-RFC6334.out | 1 …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…
|
D | dhcpv6-ia-na.out | 1 …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…
|
D | dhcpv6-ntp-server.out | 1 … sum ok] dhcp6 reply (xid=f69b57 (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
|
D | dhcpv6-domain-list.out | 1 … sum ok] dhcp6 reply (xid=aa56ce (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
|
D | dhcpv6-sip-server-d.out | 1 … sum ok] dhcp6 reply (xid=6890d8 (client-ID hwaddr/time type 1 time 418384703 000c2938f368) (serve…
|
/external/dnsmasq/src/ |
D | dhcp.c | 531 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 …]
|
D | lease.c | 155 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()
|
D | dnsmasq.h | 420 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 807 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 809 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type); 813 unsigned char *hwaddr, int hw_len, 830 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 835 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 848 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr,
|
D | helper.c | 46 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()
|
D | rfc2131.c | 276 memcmp_masked(mac->hwaddr, mess->chaddr, mess->hlen, mac->mask)) in dhcp_reply() 432 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) in dhcp_reply() 584 if (new && !have_config(new, CONFIG_CLID) && !new->hwaddr) in dhcp_reply() 901 !config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) in dhcp_reply() 905 ltmp->hwaddr, ltmp->clid_len, ltmp->clid, &len); in dhcp_reply() 1092 if (config && config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) in dhcp_reply() 1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), in dhcp_reply() 1310 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, in extended_hwaddr() argument 1334 return hwaddr; in extended_hwaddr()
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 96 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()
|
D | pppoe-discovery.c | 101 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()
|
D | pppoe.h | 263 int openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr);
|
/external/libnl/lib/netfilter/ |
D | queue_msg_obj.c | 374 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)
|
D | log_msg_obj.c | 319 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/ |
D | sys-solaris.c | 2151 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 …]
|