summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-12-11 14:13:30 +0100
committerHans Dedecker <dedeckeh@gmail.com>2019-02-08 14:07:21 +0100
commit7847b27e6533824e41fbae239acfda328b9cdfa5 (patch)
tree6674993d128d1c2ed30eacf44e41203ae6f46afe /src/ubus.c
parenta54cee0d033ada75724b18a9350103a02e0ba956 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ubus.c b/src/ubus.c
index eb6e845..e1fb30e 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -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) &&