ipvti link module
More...
ipvti link module
Link Type Name: "ipvti"
IPVTI Documentation (Netlink Routing Development Guide)
◆ IPVTI_ATTR_LINK
#define IPVTI_ATTR_LINK (1 << 0) |
◆ IPVTI_ATTR_IKEY
#define IPVTI_ATTR_IKEY (1 << 1) |
◆ IPVTI_ATTR_OKEY
#define IPVTI_ATTR_OKEY (1 << 2) |
◆ IPVTI_ATTR_LOCAL
#define IPVTI_ATTR_LOCAL (1 << 3) |
◆ IPVTI_ATTR_REMOTE
#define IPVTI_ATTR_REMOTE (1 << 4) |
◆ IPVTI_ATTR_FWMARK
#define IPVTI_ATTR_FWMARK (1 << 5) |
◆ IS_IPVTI_LINK_ASSERT
#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 261 of file ipvti.c.
◆ rtnl_link_ipvti_alloc()
struct rtnl_link * rtnl_link_ipvti_alloc |
( |
void |
| ) |
|
◆ rtnl_link_is_ipvti()
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 291 of file ipvti.c.
◆ rtnl_link_ipvti_add()
int rtnl_link_ipvti_add |
( |
struct nl_sock * |
sk, |
|
|
const char * |
name |
|
) |
| |
◆ rtnl_link_ipvti_set_link()
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 327 of file ipvti.c.
◆ rtnl_link_ipvti_get_link()
uint32_t rtnl_link_ipvti_get_link |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel interface index.
- Parameters
-
- Returns
- interface index
Definition at line 345 of file ipvti.c.
◆ rtnl_link_ipvti_set_ikey()
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 361 of file ipvti.c.
◆ rtnl_link_ipvti_get_ikey()
uint32_t rtnl_link_ipvti_get_ikey |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel ikey.
- Parameters
-
- Returns
- ikey
Definition at line 379 of file ipvti.c.
◆ rtnl_link_ipvti_set_okey()
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 395 of file ipvti.c.
◆ rtnl_link_ipvti_get_okey()
uint32_t rtnl_link_ipvti_get_okey |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel okey.
- Parameters
-
- Returns
- okey value
Definition at line 413 of file ipvti.c.
◆ rtnl_link_ipvti_set_local()
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 429 of file ipvti.c.
◆ rtnl_link_ipvti_get_local()
uint32_t rtnl_link_ipvti_get_local |
( |
struct rtnl_link * |
link | ) |
|
Get IPVTI tunnel local address.
- Parameters
-
- Returns
- local address
Definition at line 447 of file ipvti.c.
◆ rtnl_link_ipvti_set_remote()
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 463 of file ipvti.c.
◆ rtnl_link_ipvti_get_remote()
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 481 of file ipvti.c.
◆ rtnl_link_ipvti_set_fwmark()
int rtnl_link_ipvti_set_fwmark |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
fwmark |
|
) |
| |
Set IPVTI tunnel fwmark.
- Parameters
-
link | Link object |
fwmark | fwmark |
- Returns
- 0 on success or a negative error code
Definition at line 497 of file ipvti.c.
◆ rtnl_link_ipvti_get_fwmark()
int rtnl_link_ipvti_get_fwmark |
( |
struct rtnl_link * |
link, |
|
|
uint32_t * |
fwmark |
|
) |
| |
Get IPVTI tunnel fwmark.
- Parameters
-
link | Link object |
fwmark | addr to fill in with the fwmark |
- Returns
- 0 on success or a negative error code
Definition at line 516 of file ipvti.c.
◆ link
uint32_t ipvti_info::link |
◆ ikey
uint32_t ipvti_info::ikey |
◆ okey
uint32_t ipvti_info::okey |
◆ local
uint32_t ipvti_info::local |
◆ remote
uint32_t ipvti_info::remote |
◆ fwmark
uint32_t ipvti_info::fwmark |
◆ ipvti_mask
uint32_t ipvti_info::ipvti_mask |