projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa26968
)
Fixed prefix class finding - it was starting from wrong offset. Now works.
author
Markus Stenberg
<markus.stenberg@iki.fi>
Tue, 26 Mar 2013 14:45:05 +0000
(16:45 +0200)
committer
Markus Stenberg
<markus.stenberg@iki.fi>
Tue, 26 Mar 2013 14:45:05 +0000
(16:45 +0200)
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index 7e62a2b97cddf393020d202a6b24d3b5e48ba6bf..161f6287a546302db2288520461e8927f7d6ab6a 100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-752,7
+752,7
@@
static uint32_t dhcpv6_parse_ia(void *opt, void *end)
uint8_t *sdata;
// Find prefix class, if any
- dhcpv6_for_each_option(
odata
, odata + olen,
+ dhcpv6_for_each_option(
&prefix[1]
, odata + olen,
stype, slen, sdata)
if (stype == DHCPV6_OPT_PREFIX_CLASS && slen == 2)
entry.prefix_class = ntohs(*((uint16_t*)sdata));