Home
last modified time | relevance | path

Searched refs:ipdst (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/stand/lib/inet/
H A Dethernet.c496 struct in_addr tmpip, ipdst, netid; in ether_output() local
531 bcopy((caddr_t)&ip->ip_dst, (caddr_t)&ipdst, sizeof (ipdst)); in ether_output()
533 if (ipdst.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()
556 tmpip.s_addr = ipdst.s_addr; in ether_output()
H A Dipv4.c584 struct in_addr ipdst, uint16_t iphlen) in make_trans_datagram() argument
630 ngp->igm_target.s_addr = ipdst.s_addr; in make_trans_datagram()
696 struct in_addr ipdst, ipsrc; in ipv4_input() local
740 bcopy((caddr_t)&(iphp->ip_dst), (caddr_t)&ipdst, in ipv4_input()
741 sizeof (ipdst)); in ipv4_input()
748 "(to %s)\n", index, inet_ntoa(ipdst)); in ipv4_input()
755 if (ipdst.s_addr != htonl(INADDR_BROADCAST) && in ipv4_input()
756 ipdst.s_addr != (mynet.s_addr | ~netmask.s_addr) && in ipv4_input()
757 ipdst.s_addr != myip.s_addr) { in ipv4_input()
760 index, inet_ntoa(ipdst)); in ipv4_input()
[all …]
H A Dibd.c488 struct in_addr tmpip, ipdst; in ibd_output() local
517 bcopy((caddr_t)&ip->ip_dst, (caddr_t)&ipdst, sizeof (ipdst)); in ibd_output()
519 if (ipdst.s_addr == htonl(INADDR_BROADCAST)) in ibd_output()
528 (ipdst.s_addr & ~mask.s_addr) == 0) { in ibd_output()
534 tmpip.s_addr = ipdst.s_addr; in ibd_output()