Home | History | Annotate | Download | only in server

Lines Matching defs:subnet

71 	struct subnet *subnet; /* Used to match fixed-addrs to subnet scopes. */
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;
2522 for (subnet = reply->shared->subnets ; subnet != NULL ;
2523 subnet = subnet->next_sibling) {
2524 if (addr_eq(subnet_number(tmp_addr, subnet->netmask),
2525 subnet->net))
2530 if (subnet) {
2550 if ((subnet == NULL) || invalid_for_eui_64) {
2552 if (subnet == NULL) {
2708 group = reply->subnet->group;
3371 struct subnet *subnet;
3388 for (subnet = reply->shared->subnets ; subnet != NULL ;
3389 subnet = subnet->next_sibling) {
3390 if (addr_eq(subnet_number(*addr, subnet->netmask),
3391 subnet->net))
3396 if (subnet == NULL)
3637 group = reply->subnet->group;
3698 * from the lease's containing subnet and higher. Note that it may
4435 * We start by trying to find a subnet based on the given prefix and
4438 * associated with the host we use it to try and find a subnet (this
4440 * to the shared subnet itself.
4441 * Once we have a subnet we extract the group from it and return it.
4454 struct subnet *subnet = NULL;
4459 if (find_grouped_subnet(&subnet, reply->shared,
4461 group = subnet->group;
4462 subnet_dereference(&subnet, MDL);
4466 /* Didn't find a subnet via prefix, what about fixed address */
4478 if (find_grouped_subnet(&subnet, reply->shared,
4480 group = subnet->group;
4481 subnet_dereference(&subnet, MDL);
5413 struct subnet *subnet;
5436 * If there is a relayed link address, find the subnet associated
5444 subnet = NULL;
5445 if (!find_subnet(&subnet, tmp_addr, MDL)) {
5446 log_debug("No subnet found for link-address %s.",
5451 subnet->shared_network, MDL);
5452 subnet_dereference(&subnet, MDL);
5503 struct subnet *subnet;
5553 * information about this subnet - ignore Confirms.
5555 subnet = shared->subnets;
5556 if (subnet == NULL)
5609 for (subnet = shared->subnets ; subnet != NULL ;
5610 subnet = subnet->next_sibling) {
5612 subnet->netmask),
5613 subnet->net))
5617 /* If we reach the end of the subnet list, and no
5618 * subnet matches the client address, then it must
5624 if (subnet == NULL) {
8052 struct subnet *subnet;
8074 for (subnet = shared->subnets ; subnet != NULL ;
8075 subnet = subnet->next_sibling) {
8076 if (addr_eq(subnet_number(fixed, subnet->netmask),
8077 subnet->net)) {
8237 * The function attempts to find a subnet that matches the first requested IP
8252 struct subnet* subnet = NULL;
8255 /* Try to match first IA_ address or prefix we find to a subnet. In
8257 * same subnet so we only need to try one right? */
8268 if (!find_subnet(&subnet, iaddr, MDL)) {
8270 "No subnet found for addr %s.", piaddr(iaddr));
8273 subnet->shared_network, MDL);
8274 subnet_dereference(&subnet, MDL);