summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-14 19:46:21 +0000
committerRoy Marples <roy@marples.name>2015-05-14 19:46:21 +0000
commit2be15e8895120d6d772e0da2463cbf6ab702858b (patch)
treee3d5610e32ea05dda8825fba7b22d02a5d23fb4a /dhcpcd.c
parent8c82f2e4007bdf896ebab0ddc39ddb45b26f41f3 (diff)
downloaddhcpcd-2be15e8895120d6d772e0da2463cbf6ab702858b.tar.xz
Handle ND options in the same way we handle DHCP and DHCPv6 options.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 27c5ac91..84036264 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -164,6 +164,14 @@ free_globals(struct dhcpcd_ctx *ctx)
}
#endif
#ifdef INET6
+ if (ctx->nd_opts) {
+ for (opt = ctx->nd_opts;
+ ctx->nd_opts_len > 0;
+ opt++, ctx->nd_opts_len--)
+ free_dhcp_opt_embenc(opt);
+ free(ctx->nd_opts);
+ ctx->nd_opts = NULL;
+ }
if (ctx->dhcp6_opts) {
for (opt = ctx->dhcp6_opts;
ctx->dhcp6_opts_len > 0;
@@ -1454,6 +1462,9 @@ main(int argc, char **argv)
#endif
#ifdef INET6
if (family == 0 || family == AF_INET6) {
+ printf("\nND options:\n");
+ ipv6nd_printoptions(&ctx,
+ ifo->nd_override, ifo->nd_override_len);
printf("\nDHCPv6 options:\n");
dhcp6_printoptions(&ctx,
ifo->dhcp6_override, ifo->dhcp6_override_len);