diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-07-06 09:41:10 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-09-13 15:34:22 +0200 |
commit | 028ab85da8ef40af43aeb48129ffa32c98503336 (patch) | |
tree | e11ae9a7210e1fb0a1c37763668b5810fbfa6cb4 /src/dhcpv6-ia.c | |
parent | a827fcad451996f1a7043b479d8c6162174b2038 (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/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index bd4342b..dd549e6 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -397,9 +397,9 @@ void dhcpv6_write_statefile(void) (c->valid_until > now ? (c->valid_until - now + wall_time) : (INFINITE_VALID(c->valid_until) ? -1 : 0)), - c->addr); + ntohl(c->addr)); - struct in_addr addr = {htonl(c->addr)}; + struct in_addr addr = {.s_addr = c->addr}; inet_ntop(AF_INET, &addr, ipbuf, sizeof(ipbuf) - 1); if (c->hostname) { |