From d2e8dc035bbbe8f29533817b892ddd41350b87f8 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 4 Dec 2013 13:56:37 +0100 Subject: [PATCH] Update class assignment logic --- src/dhcpv6-ia.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.25.1