diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-12-11 14:13:30 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-08 14:07:21 +0100 |
commit | 7847b27e6533824e41fbae239acfda328b9cdfa5 (patch) | |
tree | 6674993d128d1c2ed30eacf44e41203ae6f46afe /src/ubus.c | |
parent | a54cee0d033ada75724b18a9350103a02e0ba956 (diff) |
treewide: unify dhcpv6 and dhcpv4 assignments
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ubus.c')
-rw-r--r-- | src/ubus.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ static int handle_dhcpv4_leases(struct ubus_context *ctx, _unused struct ubus_ob void *i = blobmsg_open_table(&b, iface->ifname); void *j = blobmsg_open_array(&b, "leases"); - struct dhcpv4_assignment *c; + struct dhcp_assignment *c; list_for_each_entry(c, &iface->dhcpv4_assignments, head) { if (!INFINITE_VALID(c->valid_until) && c->valid_until < now) continue; @@ -118,8 +118,8 @@ static int handle_dhcpv6_leases(_unused struct ubus_context *ctx, _unused struct void *i = blobmsg_open_table(&b, iface->ifname); void *j = blobmsg_open_array(&b, "leases"); - struct dhcpv6_assignment *a, *border = list_last_entry( - &iface->ia_assignments, struct dhcpv6_assignment, head); + struct dhcp_assignment *a, *border = list_last_entry( + &iface->ia_assignments, struct dhcp_assignment, head); list_for_each_entry(a, &iface->ia_assignments, head) { if (a == border || (!INFINITE_VALID(a->valid_until) && |