aboutgitcodebugslistschat
path: root/netlink.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-08-15 00:09:43 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-08-15 09:14:47 +0200
commit0c74068f5643b87db779bb92c73679b257e03a9c (patch)
tree26754626af5c880a40f37d73c61eab68c15494f7 /netlink.h
parent8231ce54c3953186f07f9aaebfd6986a303005aa (diff)
downloadpasst-0c74068f5643b87db779bb92c73679b257e03a9c.tar
passt-0c74068f5643b87db779bb92c73679b257e03a9c.tar.gz
passt-0c74068f5643b87db779bb92c73679b257e03a9c.tar.bz2
passt-0c74068f5643b87db779bb92c73679b257e03a9c.tar.lz
passt-0c74068f5643b87db779bb92c73679b257e03a9c.tar.xz
passt-0c74068f5643b87db779bb92c73679b257e03a9c.tar.zst
passt-0c74068f5643b87db779bb92c73679b257e03a9c.zip
netlink, pasta: Turn nl_link_up() into a generic function to set link flags
In the next patches, we'll reuse it to set flags other than IFF_UP. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'netlink.h')
-rw-r--r--netlink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/netlink.h b/netlink.h
index 87d27ae..178f8ae 100644
--- a/netlink.h
+++ b/netlink.h
@@ -24,6 +24,7 @@ int nl_addr_dup(int s_src, unsigned int ifi_src,
int nl_link_get_mac(int s, unsigned int ifi, void *mac);
int nl_link_set_mac(int s, unsigned int ifi, const void *mac);
int nl_link_set_mtu(int s, unsigned int ifi, int mtu);
-int nl_link_up(int s, unsigned int ifi);
+int nl_link_set_flags(int s, unsigned int ifi,
+ unsigned int set, unsigned int change);
#endif /* NETLINK_H */