From c883e53b45ea050fd0038bb15bb02f1e97d3a765 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 2 Apr 2014 22:30:48 +0200 Subject: [PATCH] Add user-class option in help text and minor clean up --- src/dhcpv6.c | 1 - src/odhcp6c.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5