summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-10 10:00:08 +0000
committerRoy Marples <roy@marples.name>2014-09-10 10:00:08 +0000
commit71650ebcdedb8250c6a3a6384ef7aabf4be7c650 (patch)
treede06ff4f7f82feed3d95272658fe9d21d7b34313 /ipv6.c
parentfc44b8dc62d75dc44cd277c537e1fb22fac6c181 (diff)
downloaddhcpcd-71650ebcdedb8250c6a3a6384ef7aabf4be7c650.tar.xz
Allow SSIDs with non printable characters to be used in ssid selection in
dhcpcd.conf and generate more accurate stable private addresses.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipv6.c b/ipv6.c
index 3bf4bc05..5986a18a 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -301,7 +301,7 @@ static int
ipv6_makestableprivate1(struct in6_addr *addr,
const struct in6_addr *prefix, int prefix_len,
const unsigned char *netiface, size_t netiface_len,
- const char *netid, size_t netid_len,
+ const unsigned char *netid, size_t netid_len,
uint32_t *dad_counter,
const unsigned char *secret, size_t secret_len)
{
@@ -376,7 +376,7 @@ ipv6_makestableprivate(struct in6_addr *addr,
* as the interface identifier */
r = ipv6_makestableprivate1(addr, prefix, prefix_len,
ifp->hwaddr, ifp->hwlen,
- ifp->ssid, strlen(ifp->ssid),
+ ifp->ssid, ifp->ssid_len,
&dad,
ifp->ctx->secret, ifp->ctx->secret_len);