/external/dhcpcd/ |
H A D | net.h | 100 unsigned char hwaddr[HWADDR_LEN]; member in struct:interface
|
H A D | net.c | 124 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen) argument 133 p += snprintf(p, 3, "%.2x", hwaddr[i]); 181 _unused unsigned char *hwaddr, _unused size_t *hwlen, 246 if (hwaddr && hwlen && ifr->ifr_addr.sa_family == AF_LINK) { 250 memcpy(hwaddr, LLADDR(sdl), *hwlen); 370 unsigned char *hwaddr = NULL; local 397 hwaddr = xmalloc(sizeof(unsigned char) * HWADDR_LEN); 398 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, hwlen); 406 hwaddr = xmalloc(sizeof(unsigned char) * HWADDR_LEN); 407 if (do_interface(ifname, hwaddr, 180 do_interface(const char *ifname, _unused unsigned char *hwaddr, _unused size_t *hwlen, struct in_addr *addr, struct in_addr *net, int get) argument [all...] |
/external/dnsmasq/src/ |
H A D | helper.c | 46 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:script_data 136 p += sprintf(p, "%.2x", data.hwaddr[i]); 348 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len);
|
H A D | lease.c | 155 lease->hwaddr, lease->hwaddr_len, lease->hwaddr_type, NULL)) && 197 ourprintf(&err, "%.2x", lease->hwaddr[i]); 292 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, argument 308 memcmp(hwaddr, lease->hwaddr, hw_len) == 0) 377 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, argument 382 (hw_len != 0 && memcmp(lease->hwaddr, hwaddr, hw_len) != 0)) 384 memcpy(lease->hwaddr, hwaddr, hw_le [all...] |
H A D | dhcp.c | 531 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 535 a particular hwaddr/clientid/hostname in our configuration. 543 /* hash hwaddr */ 545 j += hwaddr[i] + (hwaddr[i] << 8) + (hwaddr[i] << 16); 555 /* pick a seed based on hwaddr then iterate until we find a free address. */ 648 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type) argument 652 for (conf_addr = config->hwaddr; conf_addr; conf_addr = conf_addr->next) 656 memcmp(conf_addr->hwaddr, hwadd 530 address_allocate(struct dhcp_context *context, struct in_addr *addrp, unsigned char *hwaddr, int hw_len, struct dhcp_netid *netids, time_t now) argument 662 find_config(struct dhcp_config *configs, struct dhcp_context *context, unsigned char *clid, int clid_len, unsigned char *hwaddr, int hw_len, int hw_type, char *hostname) argument 725 unsigned char hwaddr[ETHER_ADDR_LEN]; local [all...] |
H A D | rfc2131.c | 276 memcmp_masked(mac->hwaddr, mess->chaddr, mess->hlen, mac->mask)) 432 memcmp(lease->hwaddr, mess->chaddr, lease->hwaddr_len) != 0)) 584 if (new && !have_config(new, CONFIG_CLID) && !new->hwaddr) 901 !config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) 905 ltmp->hwaddr, ltmp->clid_len, ltmp->clid, &len); 1092 if (config && config_has_mac(config, ltmp->hwaddr, ltmp->hwaddr_len, ltmp->hwaddr_type)) 1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), 1310 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, argument 1334 return hwaddr;
|
H A D | dnsmasq.h | 418 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_lease 438 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:hwaddr_config 452 struct hwaddr_config *hwaddr; member in struct:dhcp_config 524 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_mac 804 struct in_addr *addrp, unsigned char *hwaddr, int hw_len, 806 int config_has_mac(struct dhcp_config *config, unsigned char *hwaddr, int len, int type); 810 unsigned char *hwaddr, int hw_len, 827 void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr, 832 struct dhcp_lease *lease_find_by_client(unsigned char *hwaddr, int hw_len, int hw_type, 845 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | if.c | 140 * hwaddr -- buffer for ehthernet address 147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr) argument 180 memcpy(hwaddr, LLADDR(sdl), ETH_ALEN); 197 * hwaddr -- buffer with ehthernet address 204 initFilter(int fd, UINT16_t type, unsigned char *hwaddr) argument 247 bpfInsn[PPPOE_FILTER_CMPW].k = ((hwaddr[0] << 24) | (hwaddr[1] << 16) | 248 (hwaddr[2] << 8) | hwaddr[3]); 249 bpfInsn[PPPOE_FILTER_CMPH].k = ((hwaddr[ 275 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) argument 419 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) argument 708 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) argument [all...] |
/external/ppp/pppd/ |
H A D | sys-linux.c | 238 static int get_ether_addr (u_int32_t ipaddr, struct sockaddr *hwaddr, 1745 struct sockaddr *hwaddr, 1824 memcpy (hwaddr, 1744 get_ether_addr(u_int32_t ipaddr, struct sockaddr *hwaddr, char *name, int namelen) argument
|