diff options
| author | Roy Marples <roy@marples.name> | 2020-10-07 14:11:47 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-10-07 14:11:47 +0100 |
| commit | 76b513c6ebf26ae0dfd320f742b945db76466ac0 (patch) | |
| tree | 3911abc0ebd1a0757aa7459a3c82e4b5c460266f /src/if.h | |
| parent | f2b2cdfb7305245d17fd790db3bf366f34f6d596 (diff) | |
| download | dhcpcd-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/if.h')
| -rw-r--r-- | src/if.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -146,6 +146,7 @@ int if_getflags(struct interface *); int if_setflag(struct interface *, short, short); #define if_up(ifp) if_setflag((ifp), (IFF_UP | IFF_RUNNING), 0) #define if_down(ifp) if_setflag((ifp), 0, IFF_UP); +bool if_is_link_up(const struct interface *); bool if_valid_hwaddr(const uint8_t *, size_t); struct if_head *if_discover(struct dhcpcd_ctx *, struct ifaddrs **, int, char * const *); |
