Home
last modified time | relevance | path

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

12345678910

/netbsd-src/external/bsd/am-utils/dist/libamu/
H A Dwire.c137 u_long subnet; in getwire_lookup() local
156 subnet = ntohl(address) & ntohl(netmask); in getwire_lookup()
192 np = getnetbyaddr(subnet, AF_INET); in getwire_lookup()
200 u_long short_subnet = subnet; in getwire_lookup()
206 (u_int) subnet, (u_int) short_subnet); in getwire_lookup()
211 if ((subnet & 0xffffff) == 0) { in getwire_lookup()
212 xsnprintf(netNumberBuf, sizeof(netNumberBuf), "%lu", C(subnet >> 24)); in getwire_lookup()
213 } else if ((subnet & 0xffff) == 0) { in getwire_lookup()
215 C(subnet >> 24), C(subnet >> 16)); in getwire_lookup()
216 } else if ((subnet & 0xff) == 0) { in getwire_lookup()
[all …]
/netbsd-src/usr.sbin/mrouted/
H A Dinet.c68 u_int32_t subnet, mask; in inet_valid_subnet() local
70 subnet = ntohl(nsubnet); in inet_valid_subnet()
73 if ((subnet & mask) != subnet) return (FALSE); in inet_valid_subnet()
75 if (subnet == 0) in inet_valid_subnet()
78 if (IN_CLASSA(subnet)) { in inet_valid_subnet()
80 (subnet & 0xff000000) == 0x7f000000 || in inet_valid_subnet()
81 (subnet & 0xff000000) == 0x00000000) return (FALSE); in inet_valid_subnet()
83 else if (IN_CLASSD(subnet) || IN_BADCLASS(subnet)) { in inet_valid_subnet()
87 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()
73 (v->uv_subnet & mask) == subnet) { in config_vifs_from_kernel()
96 v->uv_subnet = subnet; in config_vifs_from_kernel()
98 v->uv_subnetbcast = subnet | ~mask; in config_vifs_from_kernel()
107 inet_fmts(subnet, mask), in config_vifs_from_kernel()
/netbsd-src/external/bsd/unbound/dist/testdata/
H A Dsubnet_prezero.crpl1 ; subnet unit test
4 send-client-subnet: 1.2.3.4
5 send-client-subnet: 1.2.3.5
18 ; It says that the recursor must send no EDNS subnet or its own address
19 ; in the EDNS subnet to the upstream server. And use that answer for the
41 00 08 00 04 ; OPCODE=subnet, optlen
47 ; reply without subnet
58 ; delegation answer for c10r.example.com, with subnet /0
70 00 08 00 04 ; OPCODE=subnet, optlen
76 ; delegation answer for c10r.example.com, without subnet
[all …]
/netbsd-src/external/mpl/dhcp/dist/keama/tests/
H A Dsubnetinsubnet4.err41 # DHCPv4 subnet declaration inside another subnet declaration config
3 # DHCPv4 subnet declaration
4 subnet 10.254.239.32 netmask 255.255.255.224 {
5 # can't put another subnet declaration here
6 subnet 10.5.5.0 netmask 255.255.255.224 {
H A Dsharetwo4.in411 # subnet declaration
12 subnet 10.5.5.0 netmask 255.255.255.224 {
17 # pool inside the subnet
22 # second subnet declaration
23 subnet 10.10.10.0 netmask 255.255.255.224 {
24 # pool inside the subnet
H A Dsharetwo4.out15 # subnet declaration
18 "subnet": "10.5.5.0/27",
30 # pool inside the subnet
36 # second subnet declaration
39 "subnet": "10.10.10.0/27",
41 # pool inside the subnet
H A Dsubnetinsubnet6.err61 # DHCPv6 subnet declaration inside another subnet declaration config
3 # DHCPv6 subnet declaration
5 # can't put another subnet declaration here
H A Dsubnet4.in41 # DHCPv4 subnet declaration config
3 # parameter which will be changed in subnet
6 # DHCPv4 subnet declaration
7 subnet 10.5.5.0 netmask 255.255.255.224 {
H A Dsubnet4auth.in41 # DHCPv4 subnet declaration config
3 # parameter which will be changed in subnet
6 # DHCPv4 subnet declaration
7 subnet 10.5.5.0 netmask 255.255.255.224 {
H A Dshareone4.in41 # DHCPv4 one-subnet shared-network declaration config
11 # subnet declaration
12 subnet 10.5.5.0 netmask 255.255.255.224 {
18 # pool (must be after the subnet)
H A Dgroupsubnet4.in41 # Group with DHCPv4 subnet declaration config
3 # parameter which will be changed in subnet
15 # DHCPv4 subnet declaration
16 subnet 10.5.5.0 netmask 255.255.255.224 {
H A Dsharepools4.in411 # subnet declaration
12 subnet 10.5.5.0 netmask 255.255.255.224 {
18 # second subnet declaration
19 subnet 10.10.10.0 netmask 255.255.255.224 { }
H A Dshareone4.out2 # DHCPv4 one-subnet shared-network declaration config
11 # subnet declaration
14 "subnet": "10.5.5.0/27",
36 # pool (must be after the subnet)
H A Dgroupsubnet4.out2 # Group with DHCPv4 subnet declaration config
3 # parameter which will be changed in subnet
12 # DHCPv4 subnet declaration
15 "subnet": "10.5.5.0/27",
H A Dsubnet4.out2 # DHCPv4 subnet declaration config
3 # parameter which will be changed in subnet
9 # DHCPv4 subnet declaration
12 "subnet": "10.5.5.0/27",
H A Dsubnet6auth.out2 # DHCPv6 subnet declaration config
3 # parameter which will be changed in subnet
7 # DHCPv4 subnet declaration
10 "subnet": "2001::/64",
/netbsd-src/external/mpl/dhcp/dist/server/
H A Ddhcpd.conf.example24 # No service will be given on this subnet, but declaring it helps the
27 subnet 10.152.187.0 netmask 255.255.255.0 {
30 # This is a very basic subnet declaration.
32 subnet 10.254.239.0 netmask 255.255.255.224 {
40 subnet 10.254.239.32 netmask 255.255.255.224 {
46 # A slightly different configuration for an internal subnet.
47 subnet 10.5.5.0 netmask 255.255.255.224 {
72 # be booted with DHCP, unless there is an address range on the subnet
82 # in a certain class get addresses on the 10.17.224/24 subnet, and all
83 # other clients get addresses on the 10.0.29/24 subnet.
[all …]
H A Dconfpars.c627 if (type != SUBNET_DECL || !group -> subnet) {
640 if ((type != SUBNET_DECL) || (group->subnet == NULL)) {
651 if ((type != SUBNET_DECL) || (group->subnet == NULL)) {
1747 group->subnet->shared_network,
2688 struct subnet *subnet) { in common_subnet_parsing() argument
2690 struct subnet *t, *u; in common_subnet_parsing()
2694 enter_subnet(subnet); in common_subnet_parsing()
2697 subnet_dereference(&subnet, MDL); in common_subnet_parsing()
2718 declaration = parse_statement(cfile, subnet->group, in common_subnet_parsing()
2726 subnet_reference(&share->subnets, subnet, MDL); in common_subnet_parsing()
[all …]
H A Dmdb.c37 struct subnet *subnets;
740 int find_host_for_network (struct subnet **sp, struct host_decl **host, in find_host_for_network()
786 void new_address_range (cfile, low, high, subnet, pool, lpchain) in new_address_range() argument
789 struct subnet *subnet;
799 struct shared_network *share = subnet -> shared_network;
807 strcpy (netbuf, piaddr (subnet -> net));
809 netbuf, piaddr (subnet -> netmask));
829 if (!addr_eq(subnet->net, subnet_number(low, subnet->netmask))) {
831 strcpy(netbuf, piaddr(subnet->net));
833 lowbuf, netbuf, piaddr(subnet->netmask));
[all …]
/netbsd-src/external/mpl/dhcp/dist/keama/tests/samples/
H A Dexample.conf28 subnet 10.152.187.0 netmask 255.255.255.0 {
33 subnet 10.254.239.0 netmask 255.255.255.224 {
42 subnet 10.254.239.32 netmask 255.255.255.224 {
50 subnet 10.5.5.0 netmask 255.255.255.224 {
95 subnet 10.17.224.0 netmask 255.255.255.0 {
99 subnet 10.0.29.0 netmask 255.255.255.0 {
H A Dexample.json37 # No service will be given on this subnet, but declaring it helps the
43 # This is a very basic subnet declaration.
88 # A slightly different configuration for an internal subnet.
126 /// Host reservations without fixed addresses were put in the last declared subnet
143 # be booted with DHCP, unless there is an address range on the subnet
160 # in a certain class get addresses on the 10.17.224/24 subnet, and all
161 # other clients get addresses on the 10.0.29/24 subnet.
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dinet.c68 struct iaddr ip_addr (subnet, mask, host_address) in ip_addr() argument
69 struct iaddr subnet; in ip_addr()
78 if (subnet.len > sizeof(subnet.iabuf))
80 if (subnet.len != mask.len)
90 rv = subnet;
117 struct iaddr broadcast_addr (subnet, mask) in broadcast_addr() argument
118 struct iaddr subnet; in broadcast_addr()
124 if (subnet.len > sizeof(subnet.iabuf))
126 if (subnet.len != mask.len)
130 if (subnet.len != mask.len) {
[all …]
/netbsd-src/external/mpl/dhcp/bin/server/
H A Ddhcpd.conf27 subnet 10.152.187.0 netmask 255.255.255.0 {
32 subnet 10.254.239.0 netmask 255.255.255.224 {
40 subnet 10.254.239.32 netmask 255.255.255.224 {
47 subnet 10.5.5.0 netmask 255.255.255.224 {
90 subnet 10.17.224.0 netmask 255.255.255.0 {
93 subnet 10.0.29.0 netmask 255.255.255.0 {
/netbsd-src/external/bsd/openldap/dist/tests/data/
H A Dsql-write.out143 dn: dc=subnet,dc=example,dc=com
147 dc: subnet
149 dn: cn=SubNet User,dc=subnet,dc=example,dc=com
159 dc: subnet 2
258 dn: dc=subnet,dc=example,dc=com
262 dc: subnet
264 dn: cn=SubNet User,dc=subnet,dc=example,dc=com
274 dc: subnet 2
362 dn: dc=subnet,dc=example,dc=com
366 dc: subnet
[all …]

12345678910