Home
last modified time | relevance | path

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

12

/external/dhcpcd/
Difaddrs.c41 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()
Darp.c63 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()
Dif-bsd.c326 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()
Dduid.c89 memcpy(p, iface->hwaddr, iface->hwlen); in get_duid()
Ddhcpcd.c297 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()
Dnet.c146 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()
Ddhcpcd.h115 unsigned char hwaddr[HWADDR_LEN]; member
/external/tcpdump/tests/
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-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-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-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.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
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,
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()
Drfc2131.c276 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/
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()
Dpppoe.h263 int openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr);
/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