Lines Matching defs:hwaddr
39 struct sockaddr_ll *hwaddr = NULL;
79 hwaddr = malloc(sizeof(struct sockaddr_ll));
80 if (hwaddr) {
81 memset(hwaddr, 0, sizeof(struct sockaddr_ll));
82 hwaddr->sll_family = family;
83 /* hwaddr->sll_protocol = ETHERTYPE_IP; */
84 hwaddr->sll_hatype = ARPHRD_ETHER;
85 hwaddr->sll_halen = ETH_ALEN;
86 memcpy(hwaddr->sll_addr, hwbuf, ETH_ALEN);
89 ifa->ifa_addr = (struct sockaddr *)hwaddr;