Lines Matching refs:ipaddr
266 int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24; in default_netmask()
323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) && in ip_transmit()
324 arptable[ARP_GATEWAY].ipaddr.s_addr) in ip_transmit()
325 destip = arptable[ARP_GATEWAY].ipaddr.s_addr; in ip_transmit()
327 if (arptable[arpentry].ipaddr.s_addr == destip) break; in ip_transmit()
342 memcpy(arpreq.sipaddr, &arptable[ARP_CLIENT].ipaddr, sizeof(in_addr)); in ip_transmit()
375 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr; in build_ip_hdr()
468 memcpy(&arptable[ARP_SERVER].ipaddr, arpreply->sipaddr, sizeof(in_addr)); in await_rarp()
469 memcpy(&arptable[ARP_CLIENT].ipaddr, arpreply->tipaddr, sizeof(in_addr)); in await_rarp()
470 memset(&arptable[ARP_GATEWAY].ipaddr, 0, sizeof(in_addr)); in await_rarp()
560 arptable[ARP_CLIENT].ipaddr.s_addr = bootpreply->bp_yiaddr.s_addr; in await_bootp()
562 arptable[ARP_SERVER].ipaddr.s_addr = bootpreply->bp_siaddr.s_addr; in await_bootp()
564 arptable[ARP_GATEWAY].ipaddr.s_addr = bootpreply->bp_giaddr.s_addr; in await_bootp()
656 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr; in await_dhcp()
659 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr; in await_dhcp()
661 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr; in await_dhcp()
985 (tmp == arptable[ARP_CLIENT].ipaddr.s_addr)) { in await_reply()
989 memcpy(arpreply->sipaddr, &arptable[ARP_CLIENT].ipaddr, sizeof(in_addr)); in await_reply()
1079 memcpy(&arptable[ARP_GATEWAY].ipaddr, p+2, sizeof(in_addr)); in decode_rfc1533()
1177 if (! inet_aton (ip, &arptable[ARP_CLIENT].ipaddr)) in ifconfig()
1184 if (gw && ! inet_aton (gw, &arptable[ARP_GATEWAY].ipaddr)) in ifconfig()
1190 if (svr && ! inet_aton (svr, &arptable[ARP_SERVER].ipaddr)) in ifconfig()
1198 if (IP_BROADCAST == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr) in ifconfig()
1199 || netmask == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr) in ifconfig()
1226 etherboot_printf ("Address: %@\n", arptable[ARP_CLIENT].ipaddr.s_addr); in print_network_configuration()
1228 etherboot_printf ("Gateway: %@\n", arptable[ARP_GATEWAY].ipaddr.s_addr); in print_network_configuration()
1229 etherboot_printf ("Server: %@\n", arptable[ARP_SERVER].ipaddr.s_addr); in print_network_configuration()
1298 sip->sn_ciaddr = arptable[ARP_CLIENT].ipaddr.s_addr; in update_network_configuration()
1299 sip->sn_siaddr = arptable[ARP_SERVER].ipaddr.s_addr; in update_network_configuration()
1300 sip->sn_giaddr = arptable[ARP_GATEWAY].ipaddr.s_addr; in update_network_configuration()
1338 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr; in dhcp_copy()
1341 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr; in dhcp_copy()
1343 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr; in dhcp_copy()