Lines Matching refs:s_addr

266 	int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24;
305 destip = ip->dest.s_addr;
323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) &&
324 arptable[ARP_GATEWAY].ipaddr.s_addr)
325 destip = arptable[ARP_GATEWAY].ipaddr.s_addr;
327 if (arptable[arpentry].ipaddr.s_addr == destip) break;
375 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr;
376 ip->dest.s_addr = destip;
386 pseudo.src.s_addr = ip->src.s_addr;
387 pseudo.dest.s_addr = ip->dest.s_addr;
560 arptable[ARP_CLIENT].ipaddr.s_addr = bootpreply->bp_yiaddr.s_addr;
562 arptable[ARP_SERVER].ipaddr.s_addr = bootpreply->bp_siaddr.s_addr;
564 arptable[ARP_GATEWAY].ipaddr.s_addr = bootpreply->bp_giaddr.s_addr;
656 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr;
657 dhcp_addr.s_addr = dhcpreply->bp_yiaddr.s_addr;
659 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr;
661 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr;
754 build_ip_hdr(igmptable[i].group.s_addr,
763 igmp.igmp.group.s_addr = igmptable[i].group.s_addr;
767 printf("Sent IGMP report to: %@\n", igmp.igmp.group.s_addr);
789 (ip->dest.s_addr == htonl(GROUP_ALL_HOSTS))) {
798 printf("Received IGMP query for: %@\n", igmp->group.s_addr);
801 uint32_t group = igmptable[i].group.s_addr;
802 if ((group == 0) || (group == igmp->group.s_addr)) {
812 (ip->dest.s_addr == igmp->group.s_addr)) {
814 printf("Received IGMP report for: %@\n", igmp->group.s_addr);
817 if ((igmptable[i].group.s_addr == igmp->group.s_addr) &&
835 if (igmptable[slot].group.s_addr) {
846 igmp.igmp.group.s_addr = igmptable[slot].group.s_addr;
850 printf("Sent IGMP leave for: %@\n", igmp.igmp.group.s_addr);
859 if (igmptable[slot].group.s_addr == group)
861 if (igmptable[slot].group.s_addr) {
869 igmptable[slot].group.s_addr = group;
985 (tmp == arptable[ARP_CLIENT].ipaddr.s_addr)) {
1172 netmask = tmp.s_addr;
1198 if (IP_BROADCAST == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr)
1199 || netmask == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr)
1226 etherboot_printf ("Address: %@\n", arptable[ARP_CLIENT].ipaddr.s_addr);
1228 etherboot_printf ("Gateway: %@\n", arptable[ARP_GATEWAY].ipaddr.s_addr);
1229 etherboot_printf ("Server: %@\n", arptable[ARP_SERVER].ipaddr.s_addr);
1298 sip->sn_ciaddr = arptable[ARP_CLIENT].ipaddr.s_addr;
1299 sip->sn_siaddr = arptable[ARP_SERVER].ipaddr.s_addr;
1300 sip->sn_giaddr = arptable[ARP_GATEWAY].ipaddr.s_addr;
1338 arptable[ARP_CLIENT].ipaddr.s_addr = dhcpreply->bp_yiaddr.s_addr;
1339 dhcp_addr.s_addr = dhcpreply->bp_yiaddr.s_addr;
1341 arptable[ARP_SERVER].ipaddr.s_addr = dhcpreply->bp_siaddr.s_addr;
1343 arptable[ARP_GATEWAY].ipaddr.s_addr = dhcpreply->bp_giaddr.s_addr;