Lines Matching refs:myip
56 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()
1013 iphp->ip_src = myip; in ipv4_output()