Lines Matching refs:s_addr
113 tmp_ia.s_addr = htonl(tmp_ia.s_addr); in ether_comarp()
264 ip.s_addr = ntohl(ip.s_addr); in ether_revarp()
434 ip.s_addr = ntohl(ip.s_addr); in ether_input()
437 ip.s_addr != INADDR_ANY && in ether_input()
533 if (ipdst.s_addr == htonl(INADDR_BROADCAST)) in ether_output()
541 mask.s_addr = htonl(mask.s_addr); in ether_output()
542 netid.s_addr = htonl(netid.s_addr); in ether_output()
548 if (mask.s_addr != htonl(INADDR_BROADCAST) && in ether_output()
549 (ipdst.s_addr & ~mask.s_addr) == 0 && in ether_output()
550 (ipdst.s_addr & mask.s_addr) == netid.s_addr) { in ether_output()
553 if (ogp->igm_router.s_addr != htonl(INADDR_ANY)) in ether_output()
554 tmpip.s_addr = ogp->igm_router.s_addr; in ether_output()
556 tmpip.s_addr = ipdst.s_addr; in ether_output()