libnl 3.7.0
|
ip6gre link module More...
Data Structures | |
struct | ip6gre_info |
Macros | |
#define | IP6GRE_ATTR_LINK (1 << 0) |
#define | IP6GRE_ATTR_IFLAGS (1 << 1) |
#define | IP6GRE_ATTR_OFLAGS (1 << 2) |
#define | IP6GRE_ATTR_IKEY (1 << 3) |
#define | IP6GRE_ATTR_OKEY (1 << 4) |
#define | IP6GRE_ATTR_LOCAL (1 << 5) |
#define | IP6GRE_ATTR_REMOTE (1 << 6) |
#define | IP6GRE_ATTR_TTL (1 << 7) |
#define | IP6GRE_ATTR_ENCAPLIMIT (1 << 8) |
#define | IP6GRE_ATTR_FLOWINFO (1 << 9) |
#define | IP6GRE_ATTR_FLAGS (1 << 10) |
#define | IP6GRE_ATTR_FWMARK (1 << 11) |
#define | IS_IP6GRE_LINK_ASSERT(link) |
#define | HAS_IP6GRE_ATTR_ASSERT(link, attr) |
Functions | |
struct rtnl_link * | rtnl_link_ip6gre_alloc (void) |
int | rtnl_link_is_ip6gre (struct rtnl_link *link) |
Check if link is a IP6GRE link. More... | |
int | rtnl_link_ip6gre_add (struct nl_sock *sk, const char *name) |
Create a new IP6GRE tunnel device. More... | |
int | rtnl_link_ip6gre_set_link (struct rtnl_link *link, uint32_t index) |
Set IP6GRE tunnel interface index. More... | |
int | rtnl_link_ip6gre_get_link (struct rtnl_link *link, uint32_t *index) |
Get IP6GRE tunnel interface index. More... | |
int | rtnl_link_ip6gre_set_iflags (struct rtnl_link *link, uint16_t iflags) |
Set IP6GRE tunnel set iflags. More... | |
int | rtnl_link_ip6gre_get_iflags (struct rtnl_link *link, uint16_t *iflags) |
Get IP6GRE tunnel iflags. More... | |
int | rtnl_link_ip6gre_set_oflags (struct rtnl_link *link, uint16_t oflags) |
Set IP6GRE tunnel set oflags. More... | |
int | rtnl_link_ip6gre_get_oflags (struct rtnl_link *link, uint16_t *oflags) |
Get IP6GRE tunnel oflags. More... | |
int | rtnl_link_ip6gre_set_ikey (struct rtnl_link *link, uint32_t ikey) |
Set IP6GRE tunnel set ikey. More... | |
int | rtnl_link_ip6gre_get_ikey (struct rtnl_link *link, uint32_t *ikey) |
Get IP6GRE tunnel ikey. More... | |
int | rtnl_link_ip6gre_set_okey (struct rtnl_link *link, uint32_t okey) |
Set IP6GRE tunnel set okey. More... | |
int | rtnl_link_ip6gre_get_okey (struct rtnl_link *link, uint32_t *okey) |
Get IP6GRE tunnel okey. More... | |
int | rtnl_link_ip6gre_set_local (struct rtnl_link *link, struct in6_addr *local) |
Set IP6GRE tunnel local address. More... | |
int | rtnl_link_ip6gre_get_local (struct rtnl_link *link, struct in6_addr *local) |
Get IP6GRE tunnel local address. More... | |
int | rtnl_link_ip6gre_set_remote (struct rtnl_link *link, struct in6_addr *remote) |
Set IP6GRE tunnel remote address. More... | |
int | rtnl_link_ip6gre_get_remote (struct rtnl_link *link, struct in6_addr *remote) |
Get IP6GRE tunnel remote address. More... | |
int | rtnl_link_ip6gre_set_ttl (struct rtnl_link *link, uint8_t ttl) |
Set IP6GRE tunnel ttl. More... | |
int | rtnl_link_ip6gre_get_ttl (struct rtnl_link *link, uint8_t *ttl) |
Set IP6GRE tunnel ttl. More... | |
int | rtnl_link_ip6gre_set_encaplimit (struct rtnl_link *link, uint8_t encaplimit) |
Set IP6GRE tunnel encap limit. More... | |
int | rtnl_link_ip6gre_get_encaplimit (struct rtnl_link *link, uint8_t *encaplimit) |
Get IP6GRE tunnel encap limit. More... | |
int | rtnl_link_ip6gre_set_flowinfo (struct rtnl_link *link, uint32_t flowinfo) |
Set IP6GRE tunnel flowinfo. More... | |
int | rtnl_link_ip6gre_get_flowinfo (struct rtnl_link *link, uint32_t *flowinfo) |
Get IP6GRE flowinfo. More... | |
int | rtnl_link_ip6gre_set_flags (struct rtnl_link *link, uint32_t flags) |
Set IP6GRE tunnel flags. More... | |
int | rtnl_link_ip6gre_get_flags (struct rtnl_link *link, uint32_t *flags) |
Get IP6GRE flags. More... | |
int | rtnl_link_ip6gre_set_fwmark (struct rtnl_link *link, uint32_t fwmark) |
Set IP6GRE tunnel fwmark. More... | |
int | rtnl_link_ip6gre_get_fwmark (struct rtnl_link *link, uint32_t *fwmark) |
Get IP6GRE tunnel fwmark. More... | |
Variables | |
uint8_t | ip6gre_info::ttl |
uint8_t | ip6gre_info::encaplimit |
uint16_t | ip6gre_info::iflags |
uint16_t | ip6gre_info::oflags |
uint32_t | ip6gre_info::ikey |
uint32_t | ip6gre_info::okey |
uint32_t | ip6gre_info::link |
uint32_t | ip6gre_info::flowinfo |
uint32_t | ip6gre_info::flags |
struct in6_addr | ip6gre_info::local |
struct in6_addr | ip6gre_info::remote |
uint32_t | ip6gre_info::fwmark |
uint32_t | ip6gre_info::ip6gre_mask |
ip6gre link module
Link Type Name: "ip6gre"
IP6GRE Documentation (Netlink Routing Development Guide)
#define IS_IP6GRE_LINK_ASSERT | ( | link | ) |
#define HAS_IP6GRE_ATTR_ASSERT | ( | link, | |
attr | |||
) |
int rtnl_link_is_ip6gre | ( | struct rtnl_link * | link | ) |
int rtnl_link_ip6gre_add | ( | struct nl_sock * | sk, |
const char * | name | ||
) |
Create a new IP6GRE tunnel device.
sock | netlink socket |
name | name of the tunnel deviceL |
Creates a new ip6gre tunnel device in the kernel
Definition at line 392 of file ip6gre.c.
References rtnl_link_add(), rtnl_link_put(), and rtnl_link_set_name().
int rtnl_link_ip6gre_set_link | ( | struct rtnl_link * | link, |
uint32_t | index | ||
) |
int rtnl_link_ip6gre_get_link | ( | struct rtnl_link * | link, |
uint32_t * | index | ||
) |
int rtnl_link_ip6gre_set_iflags | ( | struct rtnl_link * | link, |
uint16_t | iflags | ||
) |
int rtnl_link_ip6gre_get_iflags | ( | struct rtnl_link * | link, |
uint16_t * | iflags | ||
) |
int rtnl_link_ip6gre_set_oflags | ( | struct rtnl_link * | link, |
uint16_t | oflags | ||
) |
int rtnl_link_ip6gre_get_oflags | ( | struct rtnl_link * | link, |
uint16_t * | oflags | ||
) |
int rtnl_link_ip6gre_set_ikey | ( | struct rtnl_link * | link, |
uint32_t | ikey | ||
) |
int rtnl_link_ip6gre_get_ikey | ( | struct rtnl_link * | link, |
uint32_t * | ikey | ||
) |
int rtnl_link_ip6gre_set_okey | ( | struct rtnl_link * | link, |
uint32_t | okey | ||
) |
int rtnl_link_ip6gre_get_okey | ( | struct rtnl_link * | link, |
uint32_t * | okey | ||
) |
int rtnl_link_ip6gre_set_local | ( | struct rtnl_link * | link, |
struct in6_addr * | local | ||
) |
int rtnl_link_ip6gre_get_local | ( | struct rtnl_link * | link, |
struct in6_addr * | local | ||
) |
int rtnl_link_ip6gre_set_remote | ( | struct rtnl_link * | link, |
struct in6_addr * | remote | ||
) |
int rtnl_link_ip6gre_get_remote | ( | struct rtnl_link * | link, |
struct in6_addr * | remote | ||
) |
int rtnl_link_ip6gre_set_ttl | ( | struct rtnl_link * | link, |
uint8_t | ttl | ||
) |
int rtnl_link_ip6gre_get_ttl | ( | struct rtnl_link * | link, |
uint8_t * | ttl | ||
) |
int rtnl_link_ip6gre_set_encaplimit | ( | struct rtnl_link * | link, |
uint8_t | encaplimit | ||
) |
int rtnl_link_ip6gre_get_encaplimit | ( | struct rtnl_link * | link, |
uint8_t * | encaplimit | ||
) |
int rtnl_link_ip6gre_set_flowinfo | ( | struct rtnl_link * | link, |
uint32_t | flowinfo | ||
) |
int rtnl_link_ip6gre_get_flowinfo | ( | struct rtnl_link * | link, |
uint32_t * | flowinfo | ||
) |
int rtnl_link_ip6gre_set_flags | ( | struct rtnl_link * | link, |
uint32_t | flags | ||
) |
int rtnl_link_ip6gre_get_flags | ( | struct rtnl_link * | link, |
uint32_t * | flags | ||
) |
int rtnl_link_ip6gre_set_fwmark | ( | struct rtnl_link * | link, |
uint32_t | fwmark | ||
) |
int rtnl_link_ip6gre_get_fwmark | ( | struct rtnl_link * | link, |
uint32_t * | fwmark | ||
) |