summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-23 14:33:48 +0100
committerRoy Marples <roy@marples.name>2020-04-23 14:33:48 +0100
commit0bf8e505a463196aac78a9e3b054c25b122983ab (patch)
tree9d8dbd1ff3d6d50aeb2bae420fc81361e4150b61 /src/ipv6.c
parent422cab4f623bc1e613925c8a26ea3203c72cc996 (diff)
downloaddhcpcd-0bf8e505a463196aac78a9e3b054c25b122983ab.tar.xz
Rename ifp->family -> ifp->hwtype so it's less confusing
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 954f47f0..f6734e93 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -1406,7 +1406,7 @@ ipv6_addlinklocal(struct interface *ifp)
/* Check sanity before malloc */
if (!(ifp->options->options & DHCPCD_SLAACPRIVATE)) {
- switch (ifp->family) {
+ switch (ifp->hwtype) {
case ARPHRD_ETHER:
/* Check for a valid hardware address */
if (ifp->hwlen != 6 && ifp->hwlen != 8) {
@@ -1446,7 +1446,7 @@ nextslaacprivate:
ap->dadcounter = dadcounter;
} else {
memcpy(ap->addr.s6_addr, ap->prefix.s6_addr, 8);
- switch (ifp->family) {
+ switch (ifp->hwtype) {
case ARPHRD_ETHER:
if (ifp->hwlen == 6) {
ap->addr.s6_addr[ 8] = ifp->hwaddr[0];