summaryrefslogtreecommitdiffstats
path: root/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-11 16:06:26 +0000
committerRoy Marples <roy@marples.name>2016-02-11 16:06:26 +0000
commitf5afdbdb72e50ae5f915360f812a44f0c0b76df6 (patch)
treeeba82fea8183f74b7de83664f0bef763d99ab108 /if.c
parenta0bc96edb9c3cf921018abfbbd5904664915c234 (diff)
downloaddhcpcd-f5afdbdb72e50ae5f915360f812a44f0c0b76df6.tar.xz
Change IF_SSIDSIZE to IF_SSIDLEN to be more clear about it.
Store an extra char for a NULL terminator solely for debubgging purposes. A better fix for [be2bbe6e37].
Diffstat (limited to 'if.c')
-rw-r--r--if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/if.c b/if.c
index 49c273a6..1b902479 100644
--- a/if.c
+++ b/if.c
@@ -525,6 +525,7 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name));
if (ioctl(ctx->pf_inet_fd, SIOCGIFPRIORITY, &ifr) == 0)
ifp->metric = (unsigned int)ifr.ifr_metric;
+ if_getssid(ifp);
#else
/* We reserve the 100 range for virtual interfaces, if and when
* we can work them out. */