Home
last modified time | relevance | path

Searched refs:subnet (Results 1 – 25 of 39) sorted by relevance

12

/openbsd-src/usr.sbin/dhcpd/
H A Dmemory.c59 struct subnet *subnets;
164 struct subnet *
168 struct subnet *subnet; in find_host_for_network() local
179 subnet = find_grouped_subnet(share, ip_address); in find_host_for_network()
180 if (subnet) { in find_host_for_network()
183 return subnet; in find_host_for_network()
191 new_address_range(struct iaddr low, struct iaddr high, struct subnet *subnet, in new_address_range() argument
198 struct shared_network *share = subnet->shared_network; in new_address_range()
204 strlcpy(netbuf, piaddr(subnet->net), sizeof(netbuf)); in new_address_range()
206 netbuf, piaddr(subnet->netmask)); in new_address_range()
[all …]
H A Dbootp.c72 struct subnet *subnet = NULL; in bootp() local
100 subnet = find_host_for_network(&hp, &ip_address, s); in bootp()
102 if (!subnet) { in bootp()
242 if (!packet->options_valid && !subnet->group->always_reply_rfc1048 && in bootp()
256 memcpy(options, subnet->group->options, sizeof(options)); in bootp()
269 netmask_tree.value = lease->subnet->netmask.iabuf; in bootp()
270 netmask_tree.len = lease->subnet->netmask.len; in bootp()
271 netmask_tree.buf_size = lease->subnet->netmask.len; in bootp()
303 else if (subnet->group->next_server.len) in bootp()
304 memcpy(&raw.siaddr, subnet->group->next_server.iabuf, 4); in bootp()
[all …]
H A Ddispatch.c91 struct subnet *subnet; in discover_interfaces() local
195 if ((subnet = find_subnet(addr))) { in discover_interfaces()
199 if (!subnet->interface) { in discover_interfaces()
200 subnet->interface = tmp; in discover_interfaces()
201 subnet->interface_address = addr; in discover_interfaces()
202 } else if (subnet->interface != tmp) { in discover_interfaces()
206 subnet->interface->name, in discover_interfaces()
209 share = subnet->shared_network; in discover_interfaces()
265 for (subnet = (tmp->shared_network ? in discover_interfaces()
266 tmp->shared_network->subnets : NULL); subnet; in discover_interfaces()
[all …]
H A Ddhcpd.h117 struct subnet *subnet; member
181 struct subnet *subnet; member
219 struct subnet *subnets;
228 struct subnet { struct
229 struct subnet *next_subnet; argument
230 struct subnet *next_sibling; argument
364 void parse_address_range(FILE *, struct subnet *);
402 struct subnet *find_host_for_network(struct host_decl **, struct iaddr *,
404 void new_address_range(struct iaddr, struct iaddr, struct subnet *, int);
405 extern struct subnet *find_grouped_subnet(struct shared_network *,
[all …]
H A Dconfpars.c416 if (type != SUBNET_DECL || !group->subnet) { in parse_statement()
421 parse_address_range(cfile, group->subnet); in parse_statement()
726 struct subnet *subnet, *t, *u; in parse_subnet_declaration() local
732 subnet = calloc(1, sizeof(struct subnet)); in parse_subnet_declaration()
733 if (!subnet) in parse_subnet_declaration()
735 subnet->shared_network = share; in parse_subnet_declaration()
736 subnet->group = clone_group(share->group, "parse_subnet_declaration"); in parse_subnet_declaration()
737 subnet->group->subnet = subnet; in parse_subnet_declaration()
741 free(subnet->group); in parse_subnet_declaration()
742 free(subnet); in parse_subnet_declaration()
[all …]
H A Ddhcpd.conf10 option subnet-mask 255.255.255.224;
14 subnet 204.254.239.0 netmask 255.255.255.224 {
21 subnet 204.254.239.32 netmask 255.255.255.224 {
27 subnet 192.5.5.0 netmask 255.255.255.224 {
32 option subnet-mask 255.255.255.224;
H A Ddhcp.c192 !lease->subnet->group->boot_unknown_clients) { in dhcpdiscover()
210 struct subnet *subnet; in dhcprequest() local
219 subnet = find_subnet(cip); in dhcprequest()
223 if (subnet) in dhcprequest()
224 lease = find_lease(packet, subnet->shared_network, &ours); in dhcprequest()
287 if (subnet && in dhcprequest()
288 subnet->shared_network->group->authoritative) { in dhcprequest()
300 subnet = find_grouped_subnet(packet->shared_network, cip); in dhcprequest()
301 if (!subnet) { in dhcprequest()
335 !lease->subnet->group->boot_unknown_clients) { in dhcprequest()
[all …]
H A Dudpsock.c103 struct subnet *subnet; in udpsock_handler() local
167 if ((subnet = find_subnet(addr)) == NULL) in udpsock_handler()
169 iface.shared_network = subnet->shared_network ; in udpsock_handler()
H A Dinet.c88 ip_addr(struct iaddr subnet, struct iaddr mask, u_int32_t host_address) in ip_addr() argument
103 rv = subnet; in ip_addr()
H A Ddhcpd.c352 extern struct subnet *subnets;
360 struct subnet *n; in periodic_scan()
/openbsd-src/usr.sbin/mrouted/
H A Dinet.c70 u_int32_t subnet, mask; in inet_valid_subnet() local
72 subnet = ntohl(nsubnet); in inet_valid_subnet()
75 if ((subnet & mask) != subnet) return (FALSE); in inet_valid_subnet()
77 if (subnet == 0) in inet_valid_subnet()
80 if (IN_CLASSA(subnet)) { in inet_valid_subnet()
82 (subnet & 0xff000000) == 0x7f000000 || in inet_valid_subnet()
83 (subnet & 0xff000000) == 0x00000000) return (FALSE); in inet_valid_subnet()
85 else if (IN_CLASSD(subnet)) { in inet_valid_subnet()
89 if (subnet & ~mask) { in inet_valid_subnet()
H A Dconfig.c27 u_int32_t addr, mask, subnet; in config_vifs_from_kernel() local
56 subnet = addr & mask; in config_vifs_from_kernel()
57 if (!inet_valid_subnet(subnet, mask) || in config_vifs_from_kernel()
58 addr == subnet || in config_vifs_from_kernel()
59 addr == (subnet | ~mask)) { in config_vifs_from_kernel()
72 (v->uv_subnet & mask) == subnet) { in config_vifs_from_kernel()
95 v->uv_subnet = subnet; in config_vifs_from_kernel()
97 v->uv_subnetbcast = subnet | ~mask; in config_vifs_from_kernel()
105 v->uv_name, inet_fmt(addr, s1), inet_fmts(subnet, mask, s2), in config_vifs_from_kernel()
H A Dcfparse.y230 u_int32_t subnet, mask; variable
233 subnet = v->uv_lcl_addr & mask;
234 if (!inet_valid_subnet(subnet, mask))
236 v->uv_subnet = subnet;
238 v->uv_subnetbcast = subnet | ~mask;
/openbsd-src/usr.sbin/amd/amd/
H A Dwire.c107 in_addr_t subnet; in getwire() local
110 subnet = al->ip_addr & al->ip_mask; in getwire()
111 hp = gethostbyaddr((char *) &subnet, 4, AF_INET); in getwire()
115 s = inet_dquad(dq, sizeof(dq), subnet); in getwire()
/openbsd-src/etc/examples/
H A Ddhcpd.conf16 subnet 192.168.1.0 netmask 255.255.255.0 {
/openbsd-src/sbin/isakmpd/
H A Dpolicy.c136 in_addr_t net, subnet; in policy_callback() local
745 subnet = decode_32(id + ISAKMP_ID_DATA_OFF - in policy_callback()
747 net &= subnet; in policy_callback()
750 net |= ~subnet; in policy_callback()
1030 subnet = decode_32(idremote + in policy_callback()
1032 net &= subnet; in policy_callback()
1035 net |= ~subnet; in policy_callback()
1355 subnet = decode_32(idlocal + in policy_callback()
1357 net &= subnet; in policy_callback()
1360 net |= ~subnet; in policy_callback()
H A Dipsec.c2216 int id, subnet = 0; in ipsec_build_id() local
2224 subnet = 1; in ipsec_build_id()
2227 if (subnet) in ipsec_build_id()
2234 if (subnet) in ipsec_build_id()
2244 if (subnet) in ipsec_build_id()
2251 if (subnet) in ipsec_build_id()
/openbsd-src/usr.sbin/unbound/util/
H A Dconfiglexer.lex372 send-client-subnet{COLON} { YDVAR(1, VAR_SEND_CLIENT_SUBNET) }
373 client-subnet-zone{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_ZONE) }
374 client-subnet-always-forward{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_ALWAYS_FORWARD) }
375 client-subnet-opcode{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_OPCODE) }
376 max-client-subnet-ipv4{COLON} { YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV4) }
377 max-client-subnet-ipv6{COLON} { YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV6) }
378 min-client-subnet-ipv4{COLON} { YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV4) }
379 min-client-subnet-ipv6{COLON} { YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV6) }
/openbsd-src/sbin/unwind/libunbound/util/
H A Dconfiglexer.lex372 send-client-subnet{COLON} { YDVAR(1, VAR_SEND_CLIENT_SUBNET) }
373 client-subnet-zone{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_ZONE) }
374 client-subnet-always-forward{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_ALWAYS_FORWARD) }
375 client-subnet-opcode{COLON} { YDVAR(1, VAR_CLIENT_SUBNET_OPCODE) }
376 max-client-subnet-ipv4{COLON} { YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV4) }
377 max-client-subnet-ipv6{COLON} { YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV6) }
378 min-client-subnet-ipv4{COLON} { YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV4) }
379 min-client-subnet-ipv6{COLON} { YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV6) }
/openbsd-src/usr.sbin/unbound/util/shm_side/
H A Dshm_main.c281 shm_stat->mem.subnet = 0; in shm_main_run()
283 shm_stat->mem.subnet = (long long)mod_get_mem(&worker->env, in shm_main_run()
/openbsd-src/usr.sbin/unbound/libunbound/
H A Dunbound.h670 long long subnet; member
/openbsd-src/sbin/unwind/libunbound/libunbound/
H A Dunbound.h670 long long subnet; member
/openbsd-src/usr.sbin/unbound/doc/
H A DREADME78 * --enable-subnet
79 Enable EDNS client subnet processing.
/openbsd-src/usr.sbin/unbound/
H A Dconfigure.ac1093 AC_ARG_ENABLE(subnet, AS_HELP_STRING([--enable-subnet],[Enable client subnet]))
1096 AC_DEFINE([CLIENT_SUBNET], [1], [Define this to enable client subnet option.])
1097 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
1099 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subne
1046 AC_ARG_ENABLE(subnet, AS_HELP_STRING([--enable-subnet],[Enable client subnet])) global() optenable
[all...]
H A DMakefile.in110 SUBNET_SRC=edns-subnet/edns-subnet.c edns-subnet/subnetmod.c edns-subnet/addrtree.c edns-subnet/subnet-whitelist.c
139 edns-subnet/edns-subnet.c edns-subnet/subnetmod.c \
140 edns-subnet/addrtre
[all...]

12