From: Hans Dedecker Date: Wed, 2 Apr 2014 20:30:48 +0000 (+0200) Subject: Add user-class option in help text and minor clean up X-Git-Tag: debian/1.1+git20160131-1~71^2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c883e53b45ea050fd0038bb15bb02f1e97d3a765;p=odhcp6c.git Add user-class option in help text and minor clean up --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 5007c24..6e5e8ba 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -188,7 +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, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen(ifname)); struct sockaddr_in6 client_addr = { .sin6_family = AF_INET6, diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 0a46947..96865c7 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -450,6 +450,7 @@ static int usage(void) #ifdef EXT_BFD_PING " -B Enable BFD ping check\n" #endif + " -u Set user-class option string\n" " -c Override client-ID (base-16 encoded)\n" " -i Use a custom interface identifier for RA handling\n" " -r Options to be requested (comma-separated)\n"