summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-07-06 09:41:10 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-09-13 15:34:22 +0200
commit028ab85da8ef40af43aeb48129ffa32c98503336 (patch)
treee11ae9a7210e1fb0a1c37763668b5810fbfa6cb4 /src/ndp.c
parenta827fcad451996f1a7043b479d8c6162174b2038 (diff)
dhcpv4: force renew nonce authentication support
Support force renew nonce authentication support in the DHCPv4 server as described in RFC3203 and RFC6704. The interface uci arameter dhcpv4_forcereconf allows to supports DHCPv4 clients which support force renew without authentication. While at it align network byte order logic for simplicity. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ndp.c b/src/ndp.c
index ec990ed..8ecc79b 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -341,6 +341,9 @@ static void check_addr_updates(struct interface *iface)
free(iface->addr4);
iface->addr4 = addr;
iface->addr4_len = len;
+
+ if (change)
+ dhcpv4_addr_update(iface);
}
// Check v6 address update