diff options
| author | Roy Marples <roy@marples.name> | 2020-10-06 07:10:41 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-10-06 07:10:41 +0100 |
| commit | 053976a565bd812c4ecc155173887cce4e3f15a4 (patch) | |
| tree | 7d982322bbf3b6e1a173769c9f242e97e4038551 /src/ipv6.c | |
| parent | e2b4e65aa0730c5e8d46c0a5d9fa11b9818520a6 (diff) | |
| download | dhcpcd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
