summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-04-16 18:12:16 +0000
committerRoy Marples <roy@marples.name>2019-04-16 18:12:16 +0000
commita5c199f49fefb0d157a3929c87dba50bd56b3523 (patch)
treece8636e5f4904d6d5fb25a7777889aa9c1e798ad /src/if.h
parentb5fbfadacd6b6457eab24971bf83a53eb9969c22 (diff)
downloaddhcpcd-a5c199f49fefb0d157a3929c87dba50bd56b3523.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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if.h b/src/if.h
index c8e406da..f10a8c37 100644
--- a/src/if.h
+++ b/src/if.h
@@ -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 *);