projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41494da
)
dhcpv6: set cnt to correct IOV enum
author
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 11 Jan 2019 09:16:54 +0000
(10:16 +0100)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 11 Jan 2019 09:19:46 +0000
(10:19 +0100)
Make the code less error prone by setting cnt to IOV_HDR_IA_NA when
sending an INFORMATION REQUEST message
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index 4cb4878e46563ac125db6e24ca000500209ad8cc..857cbe1ce1b52c408d4ce22befc829c00e3b7b09 100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-498,7
+498,7
@@
static void dhcpv6_send(enum dhcpv6_msg type, uint8_t trid[3], uint32_t ecs)
size_t cnt = IOV_TOTAL;
if (type == DHCPV6_MSG_INFO_REQ)
- cnt =
8
;
+ cnt =
IOV_HDR_IA_NA
;
// Disable IAs if not used
if (type != DHCPV6_MSG_SOLICIT && ia_na_len == 0)