ipvti link module
More...
|
#define | IPVTI_ATTR_LINK (1 << 0) |
|
#define | IPVTI_ATTR_IKEY (1 << 1) |
|
#define | IPVTI_ATTR_OKEY (1 << 2) |
|
#define | IPVTI_ATTR_LOCAL (1 << 3) |
|
#define | IPVTI_ATTR_REMOTE (1 << 4) |
|
#define | IS_IPVTI_LINK_ASSERT(link) |
|
|
uint32_t | ipvti_info::link |
|
uint32_t | ipvti_info::ikey |
|
uint32_t | ipvti_info::okey |
|
uint32_t | ipvti_info::local |
|
uint32_t | ipvti_info::remote |
|
uint32_t | ipvti_info::ipvti_mask |
|
ipvti link module
Link Type Name: "ipvti"
IPVTI Documentation (Netlink Routing Development Guide)
#define IS_IPVTI_LINK_ASSERT |
( |
|
link | ) |
|
Value:if ((link)->l_info_ops != &ipvti_info_ops) { \
APPBUG("Link is not a ipvti link. set type \vti\" first."); \
return -NLE_OPNOTSUPP; \
}
Definition at line 244 of file ipvti.c.
int rtnl_link_is_ipvti |
( |
struct rtnl_link * |
link | ) |
|
Check if link is a IPVTI link.
- Parameters
-
- Returns
- True if link is a IPVTI link, otherwise 0 is returned.
Definition at line 274 of file ipvti.c.
int rtnl_link_ipvti_add |
( |
struct nl_sock * |
sk, |
|
|
const char * |
name |
|
) |
| |
int rtnl_link_ipvti_set_link |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
index |
|
) |
| |
Set IPVTI tunnel interface index.
- Parameters
-
link | Link object |
index | interface index |
- Returns
- 0 on success or a negative error code
Definition at line 310 of file ipvti.c.
uint32_t rtnl_link_ipvti_get_link |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel interface index.
- Parameters
-
- Returns
- interface index
Definition at line 328 of file ipvti.c.
int rtnl_link_ipvti_set_ikey |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
ikey |
|
) |
| |
Set IPVTI tunnel set ikey.
- Parameters
-
link | Link object |
ikey | gre ikey |
- Returns
- 0 on success or a negative error code
Definition at line 344 of file ipvti.c.
uint32_t rtnl_link_ipvti_get_ikey |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel ikey.
- Parameters
-
- Returns
- ikey
Definition at line 362 of file ipvti.c.
int rtnl_link_ipvti_set_okey |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
okey |
|
) |
| |
Set IPVTI tunnel set okey.
- Parameters
-
link | Link object |
okey | gre okey |
- Returns
- 0 on success or a negative error code
Definition at line 378 of file ipvti.c.
uint32_t rtnl_link_ipvti_get_okey |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel okey.
- Parameters
-
- Returns
- okey value
Definition at line 396 of file ipvti.c.
int rtnl_link_ipvti_set_local |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
addr |
|
) |
| |
Set IPVTI tunnel local address.
- Parameters
-
link | Link object |
addr | local address |
- Returns
- 0 on success or a negative error code
Definition at line 412 of file ipvti.c.
uint32_t rtnl_link_ipvti_get_local |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel local address.
- Parameters
-
- Returns
- local address
Definition at line 430 of file ipvti.c.
int rtnl_link_ipvti_set_remote |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
remote |
|
) |
| |
Set IPVTI tunnel remote address.
- Parameters
-
link | Link object |
remote | remote address |
- Returns
- 0 on success or a negative error code
Definition at line 446 of file ipvti.c.
uint32_t rtnl_link_ipvti_get_remote |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel remote address.
- Parameters
-
- Returns
- remote address on success or a negative error code
Definition at line 464 of file ipvti.c.