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
commitc1e483219a2e67cc7c1d55205494c1b6c0b9376e (patch)
tree9d8dbd1ff3d6d50aeb2bae420fc81361e4150b61 /src/ipv6.c
parent3aab7bf5a19a0d05cc9f7b3a0e1db30b104942c8 (diff)
downloaddhcpcd-c1e483219a2e67cc7c1d55205494c1b6c0b9376e.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];