| /src/usr.sbin/mrouted/ |
| config.c | 27 u_int32_t addr, mask, subnet; local 52 * valid subnet number, or whose address is of the form {subnet,0} 53 * or {subnet,-1}. 56 subnet = addr & mask; 57 if (!inet_valid_subnet(subnet, mask) || 58 addr == subnet || 59 addr == (subnet | ~mask)) { 68 * Ignore any interface that is connected to the same subnet as 73 (v->uv_subnet & mask) == subnet) { [all...] |
| config.c | 27 u_int32_t addr, mask, subnet; local 52 * valid subnet number, or whose address is of the form {subnet,0} 53 * or {subnet,-1}. 56 subnet = addr & mask; 57 if (!inet_valid_subnet(subnet, mask) || 58 addr == subnet || 59 addr == (subnet | ~mask)) { 68 * Ignore any interface that is connected to the same subnet as 73 (v->uv_subnet & mask) == subnet) { [all...] |
| inet.c | 25 * (Without a mask, cannot detect addresses of the form {subnet,0} or 26 * {subnet,-1}.) 57 * Verify that a given subnet number and mask pair are credible. 59 * With CIDR, almost any subnet and mask are credible. mrouted still 61 * otherwise the only requirements are that the subnet address is 62 * within the [ABC] range and that the host bits of the subnet 68 u_int32_t subnet, mask; local 70 subnet = ntohl(nsubnet); 73 if ((subnet & mask) != subnet) return (FALSE) [all...] |
| inet.c | 25 * (Without a mask, cannot detect addresses of the form {subnet,0} or 26 * {subnet,-1}.) 57 * Verify that a given subnet number and mask pair are credible. 59 * With CIDR, almost any subnet and mask are credible. mrouted still 61 * otherwise the only requirements are that the subnet address is 62 * within the [ABC] range and that the host bits of the subnet 68 u_int32_t subnet, mask; local 70 subnet = ntohl(nsubnet); 73 if ((subnet & mask) != subnet) return (FALSE) [all...] |
| /src/external/apache2/mDNSResponder/dist/ServiceRegistration/ |
| srp-gw.h | 22 typedef struct subnet subnet_t; 23 struct subnet { struct
|
| srp-gw.h | 22 typedef struct subnet subnet_t; 23 struct subnet { struct
|
| /src/external/bsd/am-utils/dist/libamu/ |
| wire.c | 43 * This function returns the subnet (address&netmask) for the primary network 137 u_long subnet; local 156 subnet = ntohl(address) & ntohl(netmask); 192 np = getnetbyaddr(subnet, AF_INET); 197 * shift the subnet way from zeros and try again. 200 u_long short_subnet = subnet; 206 (u_int) subnet, (u_int) short_subnet); 211 if ((subnet & 0xffffff) == 0) { 212 xsnprintf(netNumberBuf, sizeof(netNumberBuf), "%lu", C(subnet >> 24)); 213 } else if ((subnet & 0xffff) == 0) [all...] |
| wire.c | 43 * This function returns the subnet (address&netmask) for the primary network 137 u_long subnet; local 156 subnet = ntohl(address) & ntohl(netmask); 192 np = getnetbyaddr(subnet, AF_INET); 197 * shift the subnet way from zeros and try again. 200 u_long short_subnet = subnet; 206 (u_int) subnet, (u_int) short_subnet); 211 if ((subnet & 0xffffff) == 0) { 212 xsnprintf(netNumberBuf, sizeof(netNumberBuf), "%lu", C(subnet >> 24)); 213 } else if ((subnet & 0xffff) == 0) [all...] |
| /src/external/mpl/dhcp/dist/common/ |
| comapi.c | 44 OMAPI_OBJECT_ALLOC (subnet, struct subnet, dhcp_type_subnet) 98 "subnet", 107 sizeof (struct subnet), 0, 110 log_fatal ("Can't register subnet object type: %s", 614 /* In this function h should be a (struct subnet *) */ 639 /* In this function h should be a (struct subnet *) */ 660 struct subnet *subnet; local 665 subnet = (struct subnet *)h [all...] |
| comapi.c | 44 OMAPI_OBJECT_ALLOC (subnet, struct subnet, dhcp_type_subnet) 98 "subnet", 107 sizeof (struct subnet), 0, 110 log_fatal ("Can't register subnet object type: %s", 614 /* In this function h should be a (struct subnet *) */ 639 /* In this function h should be a (struct subnet *) */ 660 struct subnet *subnet; local 665 subnet = (struct subnet *)h [all...] |
| discover.c | 573 subnet it's on, and add it to the list of interfaces. */ 589 struct subnet *subnet; local 812 /* We must have a subnet declaration for each interface. */ 816 log_error("No subnet declaration for %s (%s).", 844 "a subnet declaration"); 858 "subnet declaration for this"); 859 log_error ("subnet. You cannot prevent %s", 861 log_error ("from listening on this subnet %s", 870 for (subnet = (tmp -> shared_networ [all...] |
| discover.c | 573 subnet it's on, and add it to the list of interfaces. */ 589 struct subnet *subnet; local 812 /* We must have a subnet declaration for each interface. */ 816 log_error("No subnet declaration for %s (%s).", 844 "a subnet declaration"); 858 "subnet declaration for this"); 859 log_error ("subnet. You cannot prevent %s", 861 log_error ("from listening on this subnet %s", 870 for (subnet = (tmp -> shared_networ [all...] |
| /src/external/mpl/dhcp/dist/server/ |
| dhcpleasequery.c | 150 struct subnet *subnet; local 195 * Initially we use the 'giaddr' subnet options scope to determine if 197 * leasequery. The subnet is not required, and may be omitted, in 204 subnet = NULL; 205 find_subnet(&subnet, gip, MDL); 206 if (subnet != NULL) 207 relay_group = subnet->group; 211 subnet_dereference(&subnet, MDL);
|
| dhcpleasequery.c | 150 struct subnet *subnet; local 195 * Initially we use the 'giaddr' subnet options scope to determine if 197 * leasequery. The subnet is not required, and may be omitted, in 204 subnet = NULL; 205 find_subnet(&subnet, gip, MDL); 206 if (subnet != NULL) 207 relay_group = subnet->group; 211 subnet_dereference(&subnet, MDL);
|
| dhcpd.c | 1618 struct subnet *subnet; local 1628 log_fatal ("No memory for shared subnet: %s", 1637 /* If there's a registered subnet for this address, 1639 subnet = (struct subnet *)0; 1640 if (find_subnet (&subnet, *ia, MDL)) { 1642 subnet, ignore all but the first we encounter. */ 1643 if (!subnet -> interface) { 1644 interface_reference (&subnet -> interface, ip, MDL) [all...] |
| dhcpd.c | 1618 struct subnet *subnet; local 1628 log_fatal ("No memory for shared subnet: %s", 1637 /* If there's a registered subnet for this address, 1639 subnet = (struct subnet *)0; 1640 if (find_subnet (&subnet, *ia, MDL)) { 1642 subnet, ignore all but the first we encounter. */ 1643 if (!subnet -> interface) { 1644 interface_reference (&subnet -> interface, ip, MDL) [all...] |
| confpars.c | 356 | subnet-declaration 443 case SUBNET: 449 "subnet declarations not allowed here."); 454 /* If we're in a subnet declaration, just do the parse. */ 456 if (token == SUBNET) { 468 * and populate it with the lone subnet...because the 470 * by shorthand, any configuration inside the subnet is 477 log_fatal ("Can't allocate shared subnet: %s", 490 if (token == SUBNET) { 496 /* share -> subnets is the subnet we just parsed. * 2763 struct subnet *subnet; local 3794 struct subnet *subnet; local [all...] |
| dhcp.c | 167 * attached subnet, and agent options are being appended by an l2 357 log_info ("DHCP4o6 packet from unknown subnet: %s", 361 log_info ("Packet from unknown subnet: %s", 465 struct subnet *subnet; local 498 subnet = (struct subnet *)0; 500 if (find_subnet (&subnet, cip, MDL)) 502 subnet -> shared_network, &ours, 0, ip_lease, MDL); 624 nak_lease (packet, &cip, lease->subnet->group) 1102 struct subnet *subnet = NULL; local 5213 struct subnet *subnet = NULL; local 5336 struct subnet *subnet = (struct subnet *)0; local [all...] |
| /src/external/bsd/unbound/dist/daemon/ |
| worker.c | 128 size_t subnet = 0; local 152 subnet += (*worker->env.mesh->mods.mod[i]->get_mem) 175 total += subnet; 177 "rrset=%u infra=%u iter=%u val=%u subnet=%u anchors=%u " 182 (unsigned)subnet, (unsigned)anch, (unsigned)ac, 199 size_t subnet = 0; 213 subnet += (*worker->env.mesh->mods.mod[i]->get_mem) 219 "subnet=%u", 223 (unsigned)val, (unsigned)subnet); 973 /* Check if the subnet module is enabled. In that case pass over th [all...] |
| worker.c | 128 size_t subnet = 0; local 152 subnet += (*worker->env.mesh->mods.mod[i]->get_mem) 175 total += subnet; 177 "rrset=%u infra=%u iter=%u val=%u subnet=%u anchors=%u " 182 (unsigned)subnet, (unsigned)anch, (unsigned)ac, 199 size_t subnet = 0; 213 subnet += (*worker->env.mesh->mods.mod[i]->get_mem) 219 "subnet=%u", 223 (unsigned)val, (unsigned)subnet); 973 /* Check if the subnet module is enabled. In that case pass over th [all...] |
| /src/external/bsd/unbound/dist/libunbound/ |
| unbound.h | 670 long long subnet; member in struct:ub_shm_stat_info::__anon7 833 /** number of queries answered from edns-subnet specific data */ 835 /** number of queries answered from edns-subnet specific data, and 836 * the answer was from the edns-subnet cache. */
|
| unbound.h | 670 long long subnet; member in struct:ub_shm_stat_info::__anon7 833 /** number of queries answered from edns-subnet specific data */ 835 /** number of queries answered from edns-subnet specific data, and 836 * the answer was from the edns-subnet cache. */
|
| /src/external/bsd/dhcpcd/dist/src/ |
| ipv6.c | 1146 struct sockaddr_in6 subnet; local 1150 if (if_getsubnet(ctx, ifname, AF_INET6, &subnet, 1151 sizeof(subnet)) == -1) { 1155 addr = &subnet.sin6_addr; 2319 /* add subnet routes */
|
| ipv6.c | 1146 struct sockaddr_in6 subnet; local 1150 if (if_getsubnet(ctx, ifname, AF_INET6, &subnet, 1151 sizeof(subnet)) == -1) { 1155 addr = &subnet.sin6_addr; 2319 /* add subnet routes */
|
| /src/external/mpl/dhcp/dist/keama/ |
| confparse.c | 61 struct subnet { struct 62 struct element *subnet; member in struct:subnet 66 TAILQ_ENTRY(subnet) next; 69 TAILQ_HEAD(subnets, subnet) known_subnets; 261 comment = createComment("/// Kea reservations are per subnet"); 583 | subnet-declaration 601 size_t subnet = 0; local 645 case SUBNET: 651 "subnet declarations not allowed here."); 653 if (token == SUBNET) 2074 struct element *subnet; local 2117 struct element *subnet; local 2346 struct element *subnet; local 2438 struct element *subnet; local 4480 struct subnet *subnet; local 4564 struct subnet *subnet; local [all...] |