diff options
author | Steven Barth <steven@midlink.org> | 2013-12-04 13:56:37 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-12-04 13:56:37 +0100 |
commit | d2e8dc035bbbe8f29533817b892ddd41350b87f8 (patch) | |
tree | 91b505e4508db80115a314ae6190e490bd129914 /src | |
parent | 8c623209b062015f98b0b35f3e7aae3de1e87715 (diff) |
Update class assignment logic
Diffstat (limited to 'src')
-rw-r--r-- | src/dhcpv6-ia.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index a990001..3defa84 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -882,6 +882,10 @@ size_t dhcpv6_handle_ia(uint8_t *buf, size_t buflen, struct interface *iface, a->peer = *addr; a->reconf_cnt = 0; a->reconf_sent = 0; + a->all_class = class_oro; + a->classes_cnt = classes_cnt; + a->classes = realloc(a->classes, classes_cnt * sizeof(uint16_t)); + memcpy(a->classes, classes, classes_cnt * sizeof(uint16_t)); break; } } |