diff options
| author | Roy Marples <roy@marples.name> | 2014-09-10 10:00:08 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-09-10 10:00:08 +0000 |
| commit | 71650ebcdedb8250c6a3a6384ef7aabf4be7c650 (patch) | |
| tree | de06ff4f7f82feed3d95272658fe9d21d7b34313 /ipv6.c | |
| parent | fc44b8dc62d75dc44cd277c537e1fb22fac6c181 (diff) | |
| download | dhcpcd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
