Searched defs:hwaddr (Results 1 - 16 of 16) sorted by relevance

/external/qemu/include/exec/
H A Dhwaddr.h1 /* Define hwaddr if it exists. */
13 /* hwaddr is the type of a physical address (its size can
17 typedef uint32_t hwaddr; typedef
21 typedef uint64_t hwaddr; typedef
/external/dhcpcd/
H A Difaddrs.c40 struct sockaddr_ll *hwaddr = NULL; local
80 hwaddr = malloc(sizeof(struct sockaddr_ll));
81 if (hwaddr) {
82 memset(hwaddr, 0, sizeof(struct sockaddr_ll));
83 hwaddr->sll_family = family;
84 /* hwaddr->sll_protocol = ETHERTYPE_IP; */
85 hwaddr->sll_hatype = ARPHRD_ETHER;
86 hwaddr->sll_halen = ETH_ALEN;
87 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN);
90 ifa->ifa_addr = (struct sockaddr *)hwaddr;
[all...]
H A Darp.c63 memcpy(p, iface->hwaddr, iface->hwlen);
116 const char *hwaddr; local
147 memcmp(hw_s, iface->hwaddr, iface->hwlen) == 0)
161 hwaddr = hwaddr_ntoa((unsigned char *)hw_s,
165 iface->name, inet_ntoa(ina), hwaddr);
166 if (select_profile(iface, hwaddr) == -1 &&
H A Dif-bsd.c326 unsigned char *hwaddr; local
426 hwaddr = xmalloc(sdl.sdl_alen);
427 memcpy(hwaddr, LLADDR(&sdl),
429 handle_hwaddr(ifname, hwaddr,
H A Ddhcpcd.h115 unsigned char hwaddr[HWADDR_LEN]; member in struct:interface
H A Dnet.c146 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen) argument
154 p += snprintf(p, 3, "%.2x", hwaddr[i]);
478 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen);
484 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen);
H A Ddhcpcd.c297 memcpy(&xid, (iface->hwaddr + iface->hwlen) - sizeof(xid),
731 memcmp(dhcp->chaddr, iface->hwaddr, iface->hwlen))
733 syslog(LOG_DEBUG, "%s: xid 0x%x is not for hwaddr %s",
842 memcpy(iface->clientid + 2, iface->hwaddr,
850 syslog(LOG_DEBUG, "%s: using hwaddr %s", iface->name,
851 hwaddr_ntoa(iface->hwaddr, iface->hwlen));
1330 /* The flags and hwaddr could have changed */
1334 memcpy(ifn->hwaddr, ifp->hwaddr, ifn->hwlen);
1348 handle_hwaddr(const char *ifname, unsigned char *hwaddr, size_ argument
[all...]
/external/dnsmasq/src/
H A Dhelper.c46 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 Dlease.c155 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 Ddhcp.c531 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 Drfc2131.c276 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 Ddnsmasq.h420 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_lease
440 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:hwaddr_config
454 struct hwaddr_config *hwaddr; member in struct:dhcp_config
526 unsigned char hwaddr[DHCP_CHADDR_MAX]; member in struct:dhcp_mac
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,
[all...]
/external/libnl/lib/netfilter/
H A Dlog_msg_obj.c319 void nfnl_log_msg_set_hwaddr(struct nfnl_log_msg *msg, uint8_t *hwaddr, int len) argument
324 memcpy(msg->log_msg_hwaddr, hwaddr, len);
H A Dqueue_msg_obj.c374 void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *msg, uint8_t *hwaddr, argument
381 memcpy(msg->queue_msg_hwaddr, hwaddr, len);
466 __ADD(QUEUE_MSG_ATTR_HWADDR, hwaddr)
/external/ppp/pppd/plugins/rp-pppoe/
H A Dif.c140 * 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 Dsys-linux.c239 static int get_ether_addr (u_int32_t ipaddr, struct sockaddr *hwaddr,
1746 struct sockaddr *hwaddr,
1825 memcpy (hwaddr,
1745 get_ether_addr(u_int32_t ipaddr, struct sockaddr *hwaddr, char *name, int namelen) argument

Completed in 298 milliseconds