diff options
| author | Roy Marples <roy@marples.name> | 2019-04-16 18:12:16 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-04-16 18:12:16 +0000 |
| commit | 504b658e5bb3f5c96c57c80d1edb0c107b62e559 (patch) | |
| tree | ce8636e5f4904d6d5fb25a7777889aa9c1e798ad /src/if.h | |
| parent | c1209152039f7fa4fa84958f521948f187e78eae (diff) | |
| download | dhcpcd-504b658e5bb3f5c96c57c80d1edb0c107b62e559.tar.xz | |
if: Add a generic function to create an aliased address name
Reduces complexity between IPv4 and IPv6 and silences a warning
about potential string trunctaion if the LUN makes too big an
interface name.
Diffstat (limited to 'src/if.h')
| -rw-r--r-- | src/if.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -129,6 +129,10 @@ int if_domtu(const struct interface *, short int); #define if_setmtu(ifp, mtu) if_domtu((ifp), (mtu)) int if_carrier(struct interface *); +#ifdef ALIAS_ADDR +int if_makealias(char *, size_t, const char *, int); +#endif + int if_carrier_os(struct interface *); int if_mtu_os(const struct interface *); |
