Home
last modified time | relevance | path

Searched refs:myip (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/boot/libsa/
H A Drarp.c106 bcopy(ap->arp_tpa, (char *)&myip, sizeof(myip)); in rarp_getipaddress()
114 if (IN_CLASSA(myip.s_addr)) in rarp_getipaddress()
116 else if (IN_CLASSB(myip.s_addr)) in rarp_getipaddress()
121 d->myip = myip; in rarp_getipaddress()
H A Dbootp.c168 d->myip.s_addr = INADDR_ANY; in bootp()
211 myip = d->myip = rbootp->bp_yiaddr; in bootp()
219 if (IN_CLASSA(ntohl(myip.s_addr))) in bootp()
221 else if (IN_CLASSB(ntohl(myip.s_addr))) in bootp()
237 if (!SAMENET(myip, rootip, netmask)) { in bootp()
245 if (!SAMENET(myip, gateip, netmask)) { in bootp()
H A Dip.c99 inet_ntoa(d->myip), ntohs(d->myport)); in sendip()
116 ip->ip_src = d->myip; in sendip()
261 if (d->myip.s_addr && ip->ip_dst.s_addr != d->myip.s_addr) { in readipv4()
264 printf("readip: bad saddr %s != ", inet_ntoa(d->myip)); in readipv4()
H A Darp.c109 bcopy(&d->myip, ah->arp_spa, sizeof (ah->arp_spa)); in arpwhohas()
275 if (bcmp(arp->arp_tpa, &d->myip, sizeof (arp->arp_tpa))) in arp_reply()
290 bcopy(&d->myip, arp->arp_spa, sizeof (arp->arp_spa)); in arp_reply()
H A Dudp.c71 inet_ntoa(d->myip), ntohs(d->myport)); in sendudp()
90 ui->ui_src = d->myip; in sendudp()
H A Diodesc.h44 struct in_addr myip; /* local ip addr, net order */ member
H A Dglobals.c29 struct in_addr myip; /* my ip address */ variable
H A Dbootparam.c132 RPC_PRINTF(("bp_whoami: myip=%s\n", inet_ntoa(myip))); in bp_whoami()
153 if (xdr_inaddr_encode(&send_tail, myip)) in bp_whoami()
H A Dnetif.c364 bzero(&s->myip, sizeof (s->myip)); in netif_close()
H A Dnet.h85 extern struct in_addr myip;
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c54 static struct in_addr myip; /* our network-order IP addr */ variable
457 myip.s_addr = htonl(ip->s_addr); in ipv4_setipaddr()
466 ip->s_addr = ntohl(myip.s_addr); in ipv4_getipaddr()
478 mynet.s_addr = netmask.s_addr & myip.s_addr; /* implicit */ in ipv4_setnetmask()
489 my_netid->s_addr = my_netmask.s_addr & ntohl(myip.s_addr); in ipv4_getnetid()
503 if (netmask_set || (myip.s_addr == 0)) in ipv4_getnetmask()
507 if (IN_CLASSA(ntohl(myip.s_addr))) in ipv4_getnetmask()
509 else if (IN_CLASSB(ntohl(myip.s_addr))) in ipv4_getnetmask()
511 else if (IN_CLASSC(ntohl(myip.s_addr))) in ipv4_getnetmask()
757 ipdst.s_addr != myip.s_addr) { in ipv4_input()
[all …]
/illumos-gate/usr/src/boot/common/
H A Ddev_net.c178 setenv("boot.netif.ip", inet_ntoa(myip), 1); in net_open()
262 if (myip.s_addr != 0) in net_getparams()
277 printf("%s: client addr: %s\n", __func__, inet_ntoa(myip)); in net_getparams()
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_ep.c827 ipaddr_t myip, remip; in rds_failover_session() local
873 myip = sp->session_myip; in rds_failover_session()
875 ret = rds_sc_path_lookup(&myip, &remip); in rds_failover_session()
878 myip, remip); in rds_failover_session()
891 ipattr.ipa_src_ip.un.ip4addr = myip; in rds_failover_session()
895 myip, remip); in rds_failover_session()