dnsmasq: fix swapped ubus args mac and ip
Fix swapped arguments "mac" and "ip" when calling function "ubus_event_bcast". Signed-off-by: Jaroslav Safka <devel@safka.org>
This commit is contained in:
parent
e2f25e607d
commit
17a4eacd0c
1 changed files with 2 additions and 2 deletions
|
@ -118,9 +118,9 @@
|
||||||
string ? string : "",
|
string ? string : "",
|
||||||
err ? err : "");
|
err ? err : "");
|
||||||
+ if (!strcmp(type, "DHCPACK"))
|
+ if (!strcmp(type, "DHCPACK"))
|
||||||
+ ubus_event_bcast("dhcp.ack", addr ? inet_ntoa(a) : NULL, daemon->namebuff, string ? string : NULL);
|
+ ubus_event_bcast("dhcp.ack", daemon->namebuff, addr ? inet_ntoa(a) : NULL, string ? string : NULL);
|
||||||
+ else if (!strcmp(type, "DHCPRELEASE"))
|
+ else if (!strcmp(type, "DHCPRELEASE"))
|
||||||
+ ubus_event_bcast("dhcp.release", addr ? inet_ntoa(a) : NULL, daemon->namebuff, string ? string : NULL);
|
+ ubus_event_bcast("dhcp.release", daemon->namebuff, addr ? inet_ntoa(a) : NULL, string ? string : NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void log_options(unsigned char *start, u32 xid)
|
static void log_options(unsigned char *start, u32 xid)
|
||||||
|
|
Loading…
Reference in a new issue