summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-07 14:11:47 +0100
committerRoy Marples <roy@marples.name>2020-10-07 14:11:47 +0100
commit76b513c6ebf26ae0dfd320f742b945db76466ac0 (patch)
tree3911abc0ebd1a0757aa7459a3c82e4b5c460266f /src/ipv6.c
parentf2b2cdfb7305245d17fd790db3bf366f34f6d596 (diff)
downloaddhcpcd-76b513c6ebf26ae0dfd320f742b945db76466ac0.tar.xz
dhcpcd: Simplify the link handling even more
Move the IS_LINK_UP macro to if_is_link_up function to reduce binary size. Rather than DHCPCD_LINK option controlling the carrier state, use it in if_is_link_up to determine the outcome.
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 78996314..3f0c1d8c 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -105,7 +105,7 @@
defined(IFF_NOLINKLOCAL)
/* Only add the LL address if we have a carrier, so DaD works. */
#define CAN_ADD_LLADDR(ifp) \
- (!((ifp)->options->options & DHCPCD_LINK) || IS_LINK_UP((ifp)))
+ (!((ifp)->options->options & DHCPCD_LINK) || if_is_link_up((ifp)))
#ifdef __sun
/* Although we can add our own LL address, we cannot drop it
* without unplumbing the if which is a lot of code.