Searched refs:ipaddr (Results 1 – 2 of 2) sorted by relevance
60 static unsigned long get_netmask(unsigned long ipaddr) in get_netmask() argument62 ipaddr = htonl(ipaddr); in get_netmask()64 if ((ipaddr & 0xC0000000) == 0xC0000000) in get_netmask()66 else if ((ipaddr & 0x80000000) == 0x80000000) in get_netmask()68 else if ((ipaddr & 0x80000000) == 0) in get_netmask()130 #define ipaddr (s_ipaddr.s_addr) in ipcalc_main() macro194 netmask = get_netmask(ipaddr); in ipcalc_main()202 broadcast = (ipaddr & netmask) | ~netmask; in ipcalc_main()207 network = ipaddr & netmask; in ipcalc_main()219 hostinfo = gethostbyaddr((char *) &ipaddr, sizeof(ipaddr), AF_INET); in ipcalc_main()
191 ipaddr - noexec