6#ifndef NETLINK_LINK_MACVLAN_H_
7#define NETLINK_LINK_MACVLAN_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
20extern char * rtnl_link_macvlan_mode2str(
int,
char *,
size_t);
21extern int rtnl_link_macvlan_str2mode(
const char *);
23extern char * rtnl_link_macvlan_flags2str(
int,
char *,
size_t);
24extern int rtnl_link_macvlan_str2flags(
const char *);
26extern char * rtnl_link_macvlan_macmode2str(
int,
char *,
size_t);
27extern int rtnl_link_macvlan_str2macmode(
const char *);
42 uint32_t *out_macmode);
48 const struct nl_addr **addr);
50 struct nl_addr *addr);
52 struct nl_addr *addr);
int rtnl_link_macvlan_get_macmode(struct rtnl_link *link, uint32_t *out_macmode)
Get MACVLAN MACMODE.
int rtnl_link_macvlan_unset_flags(struct rtnl_link *, uint16_t)
Unset MACVLAN flags.
int rtnl_link_macvlan_set_mode(struct rtnl_link *, uint32_t)
Set MACVLAN MODE.
struct rtnl_link * rtnl_link_macvlan_alloc(void)
Allocate link object of type MACVLAN.
uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *)
Get MACVLAN Mode.
int rtnl_link_macvlan_set_macmode(struct rtnl_link *, uint32_t)
Set MACVLAN MACMODE.
int rtnl_link_macvlan_get_macaddr(struct rtnl_link *link, uint32_t idx, const struct nl_addr **addr)
Get configured remote MAC-Addr from MACVLAN device in source mode.
int rtnl_link_macvlan_set_flags(struct rtnl_link *, uint16_t)
Set MACVLAN flags.
int rtnl_link_macvlan_del_macaddr(struct rtnl_link *link, struct nl_addr *addr)
Remove MAC-Addr from MACVLAN device in source mode.
uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *)
Get MACVLAN flags.
int rtnl_link_is_macvlan(struct rtnl_link *)
Check if link is a MACVLAN link.
int rtnl_link_macvlan_add_macaddr(struct rtnl_link *link, struct nl_addr *addr)
Add MAC-Addr to MACVLAN device in source mode.
int rtnl_link_macvlan_count_macaddr(struct rtnl_link *link, uint32_t *out_count)
Get number of MAC-Addr for MACVLAN device in source mode.