Home
last modified time | relevance | path

Searched refs:arpreq (Results 1 – 7 of 7) sorted by relevance

/external/libppp/src/
Darp.c170 struct arpreq arpreq; in arp_SetProxy() local
176 memset(&arpreq, '\0', sizeof arpreq); in arp_SetProxy()
187 arpreq.arp_ha.sa_len = sizeof(struct sockaddr); in arp_SetProxy()
188 arpreq.arp_ha.sa_family = AF_UNSPEC; in arp_SetProxy()
189 memcpy(arpreq.arp_ha.sa_data, LLADDR(&dls.sdl), dls.sdl.sdl_alen); in arp_SetProxy()
190 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in arp_SetProxy()
191 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; in arp_SetProxy()
192 arpreq.arp_flags = ATF_PERM | ATF_PUBL; in arp_SetProxy()
193 if (ID0ioctl(s, SIOCSARP, (caddr_t) & arpreq) < 0) { in arp_SetProxy()
207 struct arpreq arpreq; in arp_ClearProxy() local
[all …]
/external/grub/netboot/
Dmain.c203 struct arprequest arpreq; in udp_transmit() local
260 arpreq.hwtype = htons (1); in udp_transmit()
261 arpreq.protocol = htons (IP); in udp_transmit()
262 arpreq.hwlen = ETH_ALEN; in udp_transmit()
263 arpreq.protolen = 4; in udp_transmit()
264 arpreq.opcode = htons (ARP_REQUEST); in udp_transmit()
265 grub_memmove (arpreq.shwaddr, arptable[ARP_CLIENT].node, in udp_transmit()
267 grub_memmove (arpreq.sipaddr, (char *) &arptable[ARP_CLIENT].ipaddr, in udp_transmit()
269 grub_memset (arpreq.thwaddr, 0, ETH_ALEN); in udp_transmit()
270 grub_memmove (arpreq.tipaddr, (char *) &destip, sizeof (in_addr)); in udp_transmit()
[all …]
/external/ppp/pppd/
Dsys-linux.c1668 struct arpreq arpreq; in sifproxyarp() local
1672 memset (&arpreq, '\0', sizeof(arpreq)); in sifproxyarp()
1674 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in sifproxyarp()
1675 SIN_ADDR(arpreq.arp_pa) = his_adr; in sifproxyarp()
1676 arpreq.arp_flags = ATF_PERM | ATF_PUBL; in sifproxyarp()
1681 if (!get_ether_addr(his_adr, &arpreq.arp_ha, proxy_arp_dev, in sifproxyarp()
1686 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev)); in sifproxyarp()
1688 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) { in sifproxyarp()
1719 struct arpreq arpreq; in cifproxyarp() local
1723 memset (&arpreq, '\0', sizeof(arpreq)); in cifproxyarp()
[all …]
Dsys-solaris.c2101 struct arpreq arpreq; local
2103 memset(&arpreq, 0, sizeof(arpreq));
2104 if (!get_ether_addr(hisaddr, &arpreq.arp_ha))
2107 arpreq.arp_pa.sa_family = AF_INET;
2108 INET_ADDR(arpreq.arp_pa) = hisaddr;
2109 arpreq.arp_flags = ATF_PERM | ATF_PUBL;
2110 if (ioctl(ipfd, SIOCSARP, (caddr_t) &arpreq) < 0) {
2127 struct arpreq arpreq; local
2129 memset(&arpreq, 0, sizeof(arpreq));
2130 arpreq.arp_pa.sa_family = AF_INET;
[all …]
/external/iproute2/include/linux/
Dif_arp.h109 struct arpreq { struct
/external/kernel-headers/original/linux/
Dif_arp.h109 struct arpreq { struct
/external/dnsmasq/src/
Ddhcp.c308 struct arpreq req; in dhcp_packet()
333 struct arpreq req; in dhcp_packet()