Lines Matching refs:netmask
192 static void get_next_params(char **argv, struct rtentry *rt, char **netmask) in get_next_params() argument
211 *netmask = argv[1]; in get_next_params()
212 get_hostname(*netmask, (struct sockaddr_in *) &sock); in get_next_params()
242 static void verify_netmask(struct rtentry *rt, char *netmask) in verify_netmask() argument
251 if (addr_mask & (addr_mask + 1)) perror_exit("wrong netmask '%s'", netmask); in verify_netmask()
261 char *netmask, *targetip; in setroute() local
273 netmask = strchr(targetip, '/'); in setroute()
274 if (netmask) { in setroute()
275 *netmask++ = 0; in setroute()
278 = htonl((1<<(32-atolx_range(netmask, 0, 32)))-1); in setroute()
280 netmask = 0; in setroute()
281 } else netmask = "default"; in setroute()
288 get_next_params(argv, &rt, (char **)&netmask); in setroute()
289 verify_netmask(&rt, (char *)netmask); in setroute()