2
0
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:
Ted Lemon
1996-05-25 18:38:02 +00:00
parent 45023390b4
commit 98c46e722b
2 changed files with 22 additions and 18 deletions

View File

@@ -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);
}

View File

@@ -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);
}