libnl 3.7.0
|
ip6tnl link module More...
Data Structures | |
struct | ip6_tnl_info |
Macros | |
#define | IP6_TNL_ATTR_LINK (1 << 0) |
#define | IP6_TNL_ATTR_LOCAL (1 << 1) |
#define | IP6_TNL_ATTR_REMOTE (1 << 2) |
#define | IP6_TNL_ATTR_TTL (1 << 3) |
#define | IP6_TNL_ATTR_TOS (1 << 4) |
#define | IP6_TNL_ATTR_ENCAPLIMIT (1 << 5) |
#define | IP6_TNL_ATTR_FLAGS (1 << 6) |
#define | IP6_TNL_ATTR_PROTO (1 << 7) |
#define | IP6_TNL_ATTR_FLOWINFO (1 << 8) |
#define | IP6_TNL_ATTR_FWMARK (1 << 9) |
#define | IS_IP6_TNL_LINK_ASSERT(link) |
Functions | |
struct rtnl_link * | rtnl_link_ip6_tnl_alloc (void) |
int | rtnl_link_is_ip6_tnl (struct rtnl_link *link) |
Check if link is a IP6_TNL link. More... | |
int | rtnl_link_ip6_tnl_add (struct nl_sock *sk, const char *name) |
Create a new ip6_tnl tunnel device. More... | |
int | rtnl_link_ip6_tnl_set_link (struct rtnl_link *link, uint32_t index) |
Set IP6_TNL tunnel interface index. More... | |
uint32_t | rtnl_link_ip6_tnl_get_link (struct rtnl_link *link) |
Get IP6_TNL tunnel interface index. More... | |
int | rtnl_link_ip6_tnl_set_local (struct rtnl_link *link, struct in6_addr *addr) |
Set IP6_TNL tunnel local address. More... | |
int | rtnl_link_ip6_tnl_get_local (struct rtnl_link *link, struct in6_addr *addr) |
Get IP6_TNL tunnel local address. More... | |
int | rtnl_link_ip6_tnl_set_remote (struct rtnl_link *link, struct in6_addr *addr) |
Set IP6_TNL tunnel remote address. More... | |
int | rtnl_link_ip6_tnl_get_remote (struct rtnl_link *link, struct in6_addr *addr) |
Get IP6_TNL tunnel remote address. More... | |
int | rtnl_link_ip6_tnl_set_ttl (struct rtnl_link *link, uint8_t ttl) |
Set IP6_TNL tunnel ttl. More... | |
uint8_t | rtnl_link_ip6_tnl_get_ttl (struct rtnl_link *link) |
Get IP6_TNL tunnel ttl. More... | |
int | rtnl_link_ip6_tnl_set_tos (struct rtnl_link *link, uint8_t tos) |
Set IP6_TNL tunnel tos. More... | |
uint8_t | rtnl_link_ip6_tnl_get_tos (struct rtnl_link *link) |
Get IP6_TNL tunnel tos. More... | |
int | rtnl_link_ip6_tnl_set_encaplimit (struct rtnl_link *link, uint8_t encap_limit) |
Set IP6_TNL tunnel encap limit. More... | |
uint8_t | rtnl_link_ip6_tnl_get_encaplimit (struct rtnl_link *link) |
Get IP6_TNL encaplimit. More... | |
int | rtnl_link_ip6_tnl_set_flowinfo (struct rtnl_link *link, uint32_t flowinfo) |
Set IP6_TNL tunnel flowinfo. More... | |
uint32_t | rtnl_link_ip6_tnl_get_flowinfo (struct rtnl_link *link) |
Get IP6_TNL flowinfo. More... | |
int | rtnl_link_ip6_tnl_set_flags (struct rtnl_link *link, uint32_t flags) |
Set IP6_TNL tunnel flags. More... | |
uint32_t | rtnl_link_ip6_tnl_get_flags (struct rtnl_link *link) |
Get IP6_TNL path flags. More... | |
int | rtnl_link_ip6_tnl_set_proto (struct rtnl_link *link, uint8_t proto) |
Set IP6_TNL tunnel proto. More... | |
uint8_t | rtnl_link_ip6_tnl_get_proto (struct rtnl_link *link) |
Get IP6_TNL proto. More... | |
int | rtnl_link_ip6_tnl_set_fwmark (struct rtnl_link *link, uint32_t fwmark) |
Set IP6_TNL tunnel fwmark. More... | |
int | rtnl_link_ip6_tnl_get_fwmark (struct rtnl_link *link, uint32_t *fwmark) |
Get IP6_TNL tunnel fwmark. More... | |
Variables | |
uint8_t | ip6_tnl_info::ttl |
uint8_t | ip6_tnl_info::tos |
uint8_t | ip6_tnl_info::encap_limit |
uint8_t | ip6_tnl_info::proto |
uint32_t | ip6_tnl_info::flags |
uint32_t | ip6_tnl_info::link |
uint32_t | ip6_tnl_info::flowinfo |
struct in6_addr | ip6_tnl_info::local |
struct in6_addr | ip6_tnl_info::remote |
uint32_t | ip6_tnl_info::fwmark |
uint32_t | ip6_tnl_info::ip6_tnl_mask |
ip6tnl link module
Link Type Name: "ip6tnl"
IP6TNL Documentation (Netlink Routing Development Guide)
#define IS_IP6_TNL_LINK_ASSERT | ( | link | ) |
int rtnl_link_is_ip6_tnl | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_add | ( | struct nl_sock * | sk, |
const char * | name | ||
) |
Create a new ip6_tnl tunnel device.
sock | netlink socket |
name | name of the tunnel device |
Creates a new ip6_tnl tunnel device in the kernel
Definition at line 367 of file ip6tnl.c.
References rtnl_link_add(), rtnl_link_put(), and rtnl_link_set_name().
int rtnl_link_ip6_tnl_set_link | ( | struct rtnl_link * | link, |
uint32_t | index | ||
) |
uint32_t rtnl_link_ip6_tnl_get_link | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_local | ( | struct rtnl_link * | link, |
struct in6_addr * | addr | ||
) |
int rtnl_link_ip6_tnl_get_local | ( | struct rtnl_link * | link, |
struct in6_addr * | addr | ||
) |
int rtnl_link_ip6_tnl_set_remote | ( | struct rtnl_link * | link, |
struct in6_addr * | addr | ||
) |
int rtnl_link_ip6_tnl_get_remote | ( | struct rtnl_link * | link, |
struct in6_addr * | addr | ||
) |
int rtnl_link_ip6_tnl_set_ttl | ( | struct rtnl_link * | link, |
uint8_t | ttl | ||
) |
uint8_t rtnl_link_ip6_tnl_get_ttl | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_tos | ( | struct rtnl_link * | link, |
uint8_t | tos | ||
) |
uint8_t rtnl_link_ip6_tnl_get_tos | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_encaplimit | ( | struct rtnl_link * | link, |
uint8_t | encap_limit | ||
) |
uint8_t rtnl_link_ip6_tnl_get_encaplimit | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_flowinfo | ( | struct rtnl_link * | link, |
uint32_t | flowinfo | ||
) |
uint32_t rtnl_link_ip6_tnl_get_flowinfo | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_flags | ( | struct rtnl_link * | link, |
uint32_t | flags | ||
) |
uint32_t rtnl_link_ip6_tnl_get_flags | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_proto | ( | struct rtnl_link * | link, |
uint8_t | proto | ||
) |
uint8_t rtnl_link_ip6_tnl_get_proto | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6_tnl_set_fwmark | ( | struct rtnl_link * | link, |
uint32_t | fwmark | ||
) |
int rtnl_link_ip6_tnl_get_fwmark | ( | struct rtnl_link * | link, |
uint32_t * | fwmark | ||
) |