mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Fix dump_subnets
This commit is contained in:
@@ -663,14 +663,16 @@ void dump_subnets ()
|
||||
struct subnet *n;
|
||||
int i;
|
||||
|
||||
for (n = s -> subnets; n; n = n -> next_subnet) {
|
||||
debug ("Subnet %s", piaddr (n -> net));
|
||||
debug (" netmask %s",
|
||||
piaddr (n -> netmask));
|
||||
for (s = shared_networks; s; s = s -> next) {
|
||||
for (n = subnets; n; n = n -> next_sibling) {
|
||||
debug ("Subnet %s", piaddr (n -> net));
|
||||
debug (" netmask %s",
|
||||
piaddr (n -> netmask));
|
||||
}
|
||||
for (l = s -> leases; l; l = l -> next) {
|
||||
print_lease (l);
|
||||
}
|
||||
debug ("Last Lease:");
|
||||
print_lease (s -> last_lease);
|
||||
}
|
||||
for (l = s -> leases; l; l = l -> next) {
|
||||
print_lease (l);
|
||||
}
|
||||
debug ("Last Lease:");
|
||||
print_lease (s -> last_lease);
|
||||
}
|
||||
|
20
memory.c
20
memory.c
@@ -663,14 +663,16 @@ void dump_subnets ()
|
||||
struct subnet *n;
|
||||
int i;
|
||||
|
||||
for (n = s -> subnets; n; n = n -> next_subnet) {
|
||||
debug ("Subnet %s", piaddr (n -> net));
|
||||
debug (" netmask %s",
|
||||
piaddr (n -> netmask));
|
||||
for (s = shared_networks; s; s = s -> next) {
|
||||
for (n = subnets; n; n = n -> next_sibling) {
|
||||
debug ("Subnet %s", piaddr (n -> net));
|
||||
debug (" netmask %s",
|
||||
piaddr (n -> netmask));
|
||||
}
|
||||
for (l = s -> leases; l; l = l -> next) {
|
||||
print_lease (l);
|
||||
}
|
||||
debug ("Last Lease:");
|
||||
print_lease (s -> last_lease);
|
||||
}
|
||||
for (l = s -> leases; l; l = l -> next) {
|
||||
print_lease (l);
|
||||
}
|
||||
debug ("Last Lease:");
|
||||
print_lease (s -> last_lease);
|
||||
}
|
||||
|
Reference in New Issue
Block a user