| /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...] |
| 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
|
| dnssd-proxy.c | 1530 const uint32_t subnet = (ntohl(addr->sin.sin_addr.s_addr) & ntohl(mask->sin.sin_addr.s_addr)); local 1532 subnet & 0xFFU, (subnet >> 8) & 0xFFU, (subnet >> 16) & 0xFFU, (subnet >> 24) & 0xFFU); 2166 // service. Currently we only support DNS push in "thread.home.arpa." domain in local subnet, so DNS push
|
| /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...] |
| /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...] |
| 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);
|
| 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...] |
| dhcpv6.c | 71 struct subnet *subnet; /* Used to match fixed-addrs to subnet scopes. */ member in struct:reply_state 1028 log_error("Pool threshold reset - shared subnet: %s; " 1062 log_error("Pool threshold exceeded - shared subnet: %s; " 2073 /* Find the static lease's subnet. */ 2077 if (find_grouped_subnet(&reply->subnet, reply->shared, 2410 if (reply->subnet != NULL) 2411 subnet_dereference(&reply->subnet, MDL); 2460 struct subnet *subnet local 3371 struct subnet *subnet; local 4454 struct subnet *subnet = NULL; local 5413 struct subnet *subnet; local 5503 struct subnet *subnet; local 8052 struct subnet *subnet; local 8252 struct subnet* subnet = NULL; 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); 935 /* Check if the subnet module is enabled. In that case pass over th [all...] |
| remote.c | 105 #include "edns-subnet/subnetmod.h" 106 #include "edns-subnet/addrtree.h" 894 size_t subnet = 0; local 912 subnet = mod_get_mem(&worker->env, "subnetcache"); 939 if(!print_longnum(ssl, "mem.mod.subnet"SQ, subnet)) 1205 if(!ssl_printf(ssl, "num.query.subnet"SQ"%lu\n", 1767 /** Lookup in subnet addrtree */ 1804 if(!ssl_printf(inf->ssl, "subnet %s/%d%s %s %s %s " ARG_LL "d\n", astr, 1811 "subnet msg %s %s %s%s %s %d %d " ARG_LL "d %d %u %u %u %d %s\n" [all...] |
| /src/external/bsd/unbound/dist/libunbound/ |
| unbound.h | 670 long long subnet; member in struct:ub_shm_stat_info::__anon8220 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 | 1171 struct sockaddr_in6 subnet; local 1176 &subnet, sizeof(subnet)) == -1) 1181 addr = &subnet.sin6_addr; 2366 /* 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...] |
| /src/external/mpl/dhcp/dist/client/ |
| dhclient.c | 1213 int find_subnet (struct subnet **sp, 4448 struct iaddr netmask, subnet, broadcast; local 4451 * No matter the length of the subnet-mask option, 4453 * subnet-mask options longer than 4 octets are not 4461 subnet = subnet_number (lease -> address, netmask); 4462 if (subnet.len) { 4464 "%s", piaddr (subnet)); 4476 broadcast = broadcast_addr (subnet, netmask);
|
| /src/external/mpl/dhcp/dist/includes/ |
| dhcpd.h | 575 struct subnet *subnet; member in struct:lease 965 struct subnet *subnet; member in struct:group 1063 struct subnet *subnets; 1073 struct subnet { struct 1075 struct subnet *next_subnet; 1076 struct subnet *next_sibling; 1724 struct subnet *subnet; /* subnet for this pool * member in struct:ipv6_pool [all...] |