ipip link module
More...
|
#define | IPIP_ATTR_LINK (1 << 0) |
|
#define | IPIP_ATTR_LOCAL (1 << 1) |
|
#define | IPIP_ATTR_REMOTE (1 << 2) |
|
#define | IPIP_ATTR_TTL (1 << 3) |
|
#define | IPIP_ATTR_TOS (1 << 4) |
|
#define | IPIP_ATTR_PMTUDISC (1 << 5) |
|
#define | IS_IPIP_LINK_ASSERT(link) |
|
|
uint8_t | ipip_info::ttl |
|
uint8_t | ipip_info::tos |
|
uint8_t | ipip_info::pmtudisc |
|
uint32_t | ipip_info::link |
|
uint32_t | ipip_info::local |
|
uint32_t | ipip_info::remote |
|
uint32_t | ipip_info::ipip_mask |
|
ipip link module
Link Type Name: "ipip"
IPIP Documentation (Netlink Routing Development Guide)
#define IS_IPIP_LINK_ASSERT |
( |
|
link | ) |
|
Value:if ((link)->l_info_ops != &ipip_info_ops) { \
APPBUG("Link is not a ipip link. set type \"ipip\" first."); \
return -NLE_OPNOTSUPP; \
}
Definition at line 265 of file ipip.c.
int rtnl_link_is_ipip |
( |
struct rtnl_link * |
link | ) |
|
Check if link is a IPIP link.
- Parameters
-
- Returns
- True if link is a IPIP link, otherwise false is returned.
Definition at line 295 of file ipip.c.
int rtnl_link_ipip_add |
( |
struct nl_sock * |
sk, |
|
|
const char * |
name |
|
) |
| |
Create a new ipip tunnel device.
- Parameters
-
sock | netlink socket |
name | name of the tunnel deviceL |
Creates a new ipip tunnel device in the kernel
- Returns
- 0 on success or a negative error code
Definition at line 308 of file ipip.c.
References rtnl_link_add(), rtnl_link_put(), and rtnl_link_set_name().
int rtnl_link_ipip_set_link |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
index |
|
) |
| |
Set IPIP tunnel interface index.
- Parameters
-
link | Link object |
index | interface index |
- Returns
- 0 on success or a negative error code
Definition at line 333 of file ipip.c.
uint32_t rtnl_link_ipip_get_link |
( |
struct rtnl_link * |
link | ) |
|
Get IPIP tunnel interface index.
- Parameters
-
- Returns
- interface index value
Definition at line 351 of file ipip.c.
int rtnl_link_ipip_set_local |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
addr |
|
) |
| |
Set IPIP tunnel local address.
- Parameters
-
link | Link object |
addr | local address |
- Returns
- 0 on success or a negative error code
Definition at line 367 of file ipip.c.
uint32_t rtnl_link_ipip_get_local |
( |
struct rtnl_link * |
link | ) |
|
Get IPIP tunnel local address.
- Parameters
-
- Returns
- local address value
Definition at line 385 of file ipip.c.
int rtnl_link_ipip_set_remote |
( |
struct rtnl_link * |
link, |
|
|
uint32_t |
addr |
|
) |
| |
Set IPIP tunnel remote address.
- Parameters
-
link | Link object |
remote | remote address |
- Returns
- 0 on success or a negative error code
Definition at line 401 of file ipip.c.
uint32_t rtnl_link_ipip_get_remote |
( |
struct rtnl_link * |
link | ) |
|
Get IPIP tunnel remote address.
- Parameters
-
- Returns
- remote address
Definition at line 419 of file ipip.c.
int rtnl_link_ipip_set_ttl |
( |
struct rtnl_link * |
link, |
|
|
uint8_t |
ttl |
|
) |
| |
Set IPIP tunnel ttl.
- Parameters
-
link | Link object |
ttl | tunnel ttl |
- Returns
- 0 on success or a negative error code
Definition at line 435 of file ipip.c.
uint8_t rtnl_link_ipip_get_ttl |
( |
struct rtnl_link * |
link | ) |
|
Get IPIP tunnel ttl.
- Parameters
-
- Returns
- ttl value
Definition at line 453 of file ipip.c.
int rtnl_link_ipip_set_tos |
( |
struct rtnl_link * |
link, |
|
|
uint8_t |
tos |
|
) |
| |
Set IPIP tunnel tos.
- Parameters
-
link | Link object |
tos | tunnel tos |
- Returns
- 0 on success or a negative error code
Definition at line 469 of file ipip.c.
uint8_t rtnl_link_ipip_get_tos |
( |
struct rtnl_link * |
link | ) |
|
Get IPIP tunnel tos.
- Parameters
-
- Returns
- tos value
Definition at line 487 of file ipip.c.
int rtnl_link_ipip_set_pmtudisc |
( |
struct rtnl_link * |
link, |
|
|
uint8_t |
pmtudisc |
|
) |
| |
Set IPIP tunnel path MTU discovery.
- Parameters
-
link | Link object |
pmtudisc | path MTU discovery |
- Returns
- 0 on success or a negative error code
Definition at line 503 of file ipip.c.
uint8_t rtnl_link_ipip_get_pmtudisc |
( |
struct rtnl_link * |
link | ) |
|