diff options
author | Jaroslav Safka <devel@safka.org> | 2017-11-13 23:02:46 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-11-13 23:30:33 +0100 |
commit | 17a4eacd0c9ba5554b7d3c6e201b5b047e5187ca (patch) | |
tree | e05e4c97e616f8490cd2da0c211a8093a81083e5 /package/network/services | |
parent | e2f25e607d2092cffa45196e7997854feb464232 (diff) | |
download | upstream-17a4eacd0c9ba5554b7d3c6e201b5b047e5187ca.tar.gz upstream-17a4eacd0c9ba5554b7d3c6e201b5b047e5187ca.tar.bz2 upstream-17a4eacd0c9ba5554b7d3c6e201b5b047e5187ca.zip |
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>
Diffstat (limited to 'package/network/services')
-rw-r--r-- | package/network/services/dnsmasq/patches/240-ubus.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/dnsmasq/patches/240-ubus.patch b/package/network/services/dnsmasq/patches/240-ubus.patch index 2d37b5d2fd..0e0b1dd1b0 100644 --- a/package/network/services/dnsmasq/patches/240-ubus.patch +++ b/package/network/services/dnsmasq/patches/240-ubus.patch @@ -118,9 +118,9 @@ string ? string : "", err ? err : ""); + 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")) -+ 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) |