summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-24 12:20:51 +0200
committerDavid Ahern <dsahern@gmail.com>2019-10-28 07:35:29 -0700
commit3aa0e51be64b47fed8fcf24c4edd1f81b276f5bc (patch)
tree8ca616628f2db743d8e6daf5e02c51bdd9321116 /include
parent20fbe9077166497ed90f9871d83b2156e156d58f (diff)
ip: add support for alternative name addition/deletion/list
Implement addition/deletion of lists of properties, currently alternative ifnames. Also extent the ip link show command to list them. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index 794d3605..001491a1 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -196,6 +196,7 @@ void duparg(const char *, const char *) __attribute__((noreturn));
void duparg2(const char *, const char *) __attribute__((noreturn));
int nodev(const char *dev);
int check_ifname(const char *);
+int check_altifname(const char *name);
int get_ifname(char *, const char *);
const char *get_ifname_rta(int ifindex, const struct rtattr *rta);
bool matches(const char *prefix, const char *string);