mirror of
https://passt.top/passt
synced 2025-06-21 06:15:34 +02:00
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>
This commit is contained in:
parent
8231ce54c3
commit
0c74068f56
3 changed files with 11 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue