X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;h=4cd9e0293e0cb1390ebb6647c218cc51d02ebf8c;hp=9f9116232d050ff9965d10aec0713a1f03863324;hb=eea7d037b93020dd5d5d2e5a698e88650a0f0912;hpb=5b12eeba475a3301c362cf59f138ec7aa60d2dd9 diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 9f91162..4cd9e02 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "odhcpd.h" #include "dhcpv6.h" @@ -89,6 +90,9 @@ int setup_dhcpv6_interface(struct interface *iface, bool enable) if (iface->dhcpv6 == RELAYD_SERVER) setsockopt(sock, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, &server, sizeof(server)); + if (iface->dhcpv6 != RELAYD_RELAY || !iface->master) + ndp_rqs_addr6_dump(); + iface->dhcpv6_event.uloop.fd = sock; iface->dhcpv6_event.handle_dgram = handle_dhcpv6; odhcpd_register(&iface->dhcpv6_event);