X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=6e5e8ba88ecec32c0fd2edaddb500c0dfe7495c6;hb=c883e53b45ea050fd0038bb15bb02f1e97d3a765;hp=afea77f2034950567c100cd95b3e977a91e10e46;hpb=47fac6f603c236d7b149e0ec593269322572b352;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index afea77f..6e5e8ba 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -188,8 +188,6 @@ int init_dhcpv6(const char *ifname, unsigned int options, int sol_timeout) setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val)); setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)); setsockopt(sock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val)); - val = 0; - setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &val, sizeof(val)); setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen(ifname)); struct sockaddr_in6 client_addr = { .sin6_family = AF_INET6, @@ -915,6 +913,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, odhcp6c_clear_state(STATE_SIP_IP); odhcp6c_clear_state(STATE_SIP_FQDN); odhcp6c_clear_state(STATE_AFTR_NAME); + odhcp6c_clear_state(STATE_CER); } // Parse and find all matching IAs