summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-06 07:10:41 +0100
committerRoy Marples <roy@marples.name>2020-10-06 07:10:41 +0100
commit053976a565bd812c4ecc155173887cce4e3f15a4 (patch)
tree7d982322bbf3b6e1a173769c9f242e97e4038551 /src/ipv6.c
parente2b4e65aa0730c5e8d46c0a5d9fa11b9818520a6 (diff)
downloaddhcpcd-053976a565bd812c4ecc155173887cce4e3f15a4.tar.xz
dhcpcd: Simplify carrier handling more by using IS_LINK_UP macro
Removes the need for the LINK_DOWN_IFFUP state. While here, remove the check for IFF_RUNNING when LINK_UNKNOWN because that is OS specific.
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 5442ebde..78996314 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) || (ifp)->carrier != LINK_DOWN)
+ (!((ifp)->options->options & DHCPCD_LINK) || 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.