Wrapper for rtnetlink interface info
Header
TEAM_EXPORT char* team_get_ifinfo_hwaddr |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo hardware address.
- Returns
- Pointer to memory place where hwaddr is.
TEAM_EXPORT size_t team_get_ifinfo_hwaddr_len |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo hardware address length.
- Returns
- Hardware address length.
TEAM_EXPORT uint32_t team_get_ifinfo_ifindex |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo interface index.
- Returns
- Ifinfo interface index as idenfified by in kernel.
TEAM_EXPORT char* team_get_ifinfo_ifname |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo interface name.
- Returns
- Pointer to memory place where interface name is.
TEAM_EXPORT uint32_t team_get_ifinfo_master_ifindex |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get interface index of master interface.
- Returns
- Master interface index as idenfified by in kernel.
TEAM_EXPORT char* team_get_ifinfo_orig_hwaddr |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo original hardware address.
- Returns
- Pointer to memory place where hwaddr is.
TEAM_EXPORT uint8_t team_get_ifinfo_orig_hwaddr_len |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo original hardware address length.
- Returns
- Hardware address length.
TEAM_EXPORT char* team_get_ifinfo_phys_port_id |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get ifinfo physical port ID.
- Returns
- Pointer to memory place where physical por ID is.
TEAM_EXPORT size_t team_get_ifinfo_phys_port_id_len |
( |
struct team_ifinfo * |
ifinfo | ) |
|
team_get_ifinfo_phys_port_id_len:
Get ifinfo physical port ID length.
- Returns
- Physical port ID length.
TEAM_EXPORT struct team_port* team_get_ifinfo_port |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
Get port associated to rtnetlink interface info.
- Returns
- Pointer to appropriate team_port structure or NULL if not associated.
TEAM_EXPORT struct team_ifinfo* team_get_next_ifinfo |
( |
struct team_handle * |
th, |
|
|
struct team_ifinfo * |
ifinfo |
|
) |
| |
- Parameters
-
th | libteam library context |
ifinfo | ifinfo structure |
Get next ifinfo in list.
- Returns
- Ifinfo next to ifinfo passed.
TEAM_EXPORT bool team_is_ifinfo_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo got changed.
- Returns
- True if ifinfo changed.
TEAM_EXPORT bool team_is_ifinfo_hwaddr_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo hardware address got changed.
- Returns
- True if hardware address got changed.
TEAM_EXPORT bool team_is_ifinfo_hwaddr_len_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo hardware address length got changed.
- Returns
- True if ifinfo hardware address length changed.
TEAM_EXPORT bool team_is_ifinfo_ifname_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo interface name got changed.
- Returns
- True if ifinfo interface name got changed.
TEAM_EXPORT bool team_is_ifinfo_master_ifindex_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if interface index of master interface got changed.
- Returns
- True if interface index of master interface got changed.
TEAM_EXPORT bool team_is_ifinfo_phys_port_id_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
team_is_ifinfo_phys_port_id_changed:
See if ifinfo physical port ID got changed.
- Returns
- True if physical port ID. got changed.
TEAM_EXPORT bool team_is_ifinfo_phys_port_id_len_changed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo physical port ID length got changed.
- Returns
- True if ifinfo physical port ID length changed.
TEAM_EXPORT bool team_is_ifinfo_removed |
( |
struct team_ifinfo * |
ifinfo | ) |
|
- Parameters
-
See if ifinfo got removed. This means that the interface got removed.
- Returns
- True if ifinfo got changed.