Lines Matching defs:ip
236 bool allow_any_ip = 0; /* Allow peer to use any IP address */
392 { "allow-ip", o_special, (void *)set_noauth_addr,
393 "Set IP address(es) which can be used without authentication",
510 novm("allow-ip argument");
1297 "(None of the available passwords would let it use an IP address.)");
1493 * acceptable, and iff so, set the list of acceptable IP addresses
1842 struct permitted_ip *ip;
1858 * Count the number of IP addresses given.
1863 ip = (struct permitted_ip *) malloc((n + 1) * sizeof(struct permitted_ip));
1864 if (ip == 0)
1879 ip[n].permit = 1;
1880 ip[n].base = ip[n].mask = 0;
1885 ip[n].permit = 1;
1887 ip[n].permit = 0;
1955 ip[n].mask = htonl(mask);
1956 ip[n].base = a & ip[n].mask;
1963 ip[n].permit = 0; /* make the last entry forbid all addresses */
1964 ip[n].base = 0; /* to terminate the list */
1965 ip[n].mask = 0;
1967 addresses[unit] = ip;
1988 * a given IP address. Returns 1 if authorized, 0 otherwise.
2028 * bad_ip_adrs - return 1 if the IP address is one we don't want
2043 * IP address(es).
2053 return 1; /* some IP address is allowed */