Lines Matching refs:sa
109 struct sockaddr sa; in arp_del() local
117 if (ap->input(host, &sa) < 0) { in arp_del()
122 memcpy(&req.arp_pa, &sa, sizeof(struct sockaddr)); in arp_del()
174 if (ap->input(host, &sa) < 0) { in arp_del()
177 memcpy(&req.arp_netmask, &sa, sizeof(struct sockaddr)); in arp_del()
226 static void arp_getdevhw(char *ifname, struct sockaddr *sa) in arp_getdevhw() argument
237 memcpy(sa, &(ifr.ifr_hwaddr), sizeof(struct sockaddr)); in arp_getdevhw()
256 struct sockaddr sa; in arp_set() local
262 if (ap->input(host, &sa) < 0) { in arp_set()
266 memcpy(&req.arp_pa, &sa, sizeof(struct sockaddr)); in arp_set()
327 if (ap->input(host, &sa) < 0) { in arp_set()
330 memcpy(&req.arp_netmask, &sa, sizeof(struct sockaddr)); in arp_set()
410 struct sockaddr sa; in arp_show() local
423 if (ap->input(name, &sa) < 0) { in arp_show()
426 host = xstrdup(ap->sprint(&sa, 1)); in arp_show()
461 if (ap->input(ip, &sa) < 0) in arp_show()
464 hostname = ap->sprint(&sa, (option_mask32 & ARP_OPT_n) | 0x8000); in arp_show()