libnl 3.7.0
|
sit link module More...
Data Structures | |
struct | sit_info |
Macros | |
#define | SIT_ATTR_LINK (1 << 0) |
#define | SIT_ATTR_LOCAL (1 << 1) |
#define | SIT_ATTR_REMOTE (1 << 2) |
#define | SIT_ATTR_TTL (1 << 3) |
#define | SIT_ATTR_TOS (1 << 4) |
#define | SIT_ATTR_PMTUDISC (1 << 5) |
#define | SIT_ATTR_FLAGS (1 << 6) |
#define | SIT_ATTR_PROTO (1 << 7) |
#define | SIT_ATTR_6RD_PREFIX (1 << 8) |
#define | SIT_ATTR_6RD_RELAY_PREFIX (1 << 9) |
#define | SIT_ATTR_6RD_PREFIXLEN (1 << 10) |
#define | SIT_ATTR_6RD_RELAY_PREFIXLEN (1 << 11) |
#define | SIT_ATTR_FWMARK (1 << 12) |
#define | IS_SIT_LINK_ASSERT(link, sit) |
Functions | |
struct rtnl_link * | rtnl_link_sit_alloc (void) |
int | rtnl_link_is_sit (struct rtnl_link *link) |
Check if link is a SIT link. More... | |
int | rtnl_link_sit_add (struct nl_sock *sk, const char *name) |
Create a new sit tunnel device. More... | |
int | rtnl_link_sit_set_link (struct rtnl_link *link, uint32_t index) |
Set SIT tunnel interface index. More... | |
uint32_t | rtnl_link_sit_get_link (struct rtnl_link *link) |
Get SIT tunnel interface index. More... | |
int | rtnl_link_sit_set_local (struct rtnl_link *link, uint32_t addr) |
Set SIT tunnel local address. More... | |
uint32_t | rtnl_link_sit_get_local (struct rtnl_link *link) |
Get SIT tunnel local address. More... | |
int | rtnl_link_sit_set_remote (struct rtnl_link *link, uint32_t addr) |
Set SIT tunnel remote address. More... | |
uint32_t | rtnl_link_sit_get_remote (struct rtnl_link *link) |
Get SIT tunnel remote address. More... | |
int | rtnl_link_sit_set_ttl (struct rtnl_link *link, uint8_t ttl) |
Set SIT tunnel ttl. More... | |
uint8_t | rtnl_link_sit_get_ttl (struct rtnl_link *link) |
Get SIT tunnel ttl. More... | |
int | rtnl_link_sit_set_tos (struct rtnl_link *link, uint8_t tos) |
Set SIT tunnel tos. More... | |
uint8_t | rtnl_link_sit_get_tos (struct rtnl_link *link) |
Get SIT tunnel tos. More... | |
int | rtnl_link_sit_set_pmtudisc (struct rtnl_link *link, uint8_t pmtudisc) |
Set SIT tunnel path MTU discovery. More... | |
uint8_t | rtnl_link_sit_get_pmtudisc (struct rtnl_link *link) |
Get SIT path MTU discovery. More... | |
int | rtnl_link_sit_set_flags (struct rtnl_link *link, uint16_t flags) |
Set SIT tunnel flags. More... | |
uint16_t | rtnl_link_sit_get_flags (struct rtnl_link *link) |
Get SIT path flags. More... | |
int | rtnl_link_sit_set_proto (struct rtnl_link *link, uint8_t proto) |
Set SIT tunnel proto. More... | |
uint8_t | rtnl_link_sit_get_proto (struct rtnl_link *link) |
Get SIT proto. More... | |
int | rtnl_link_sit_set_ip6rd_prefix (struct rtnl_link *link, const struct in6_addr *prefix) |
Set ip6rd prefix. More... | |
int | rtnl_link_sit_get_ip6rd_prefix (const struct rtnl_link *link, struct in6_addr *prefix) |
Get ip6rd prefix. More... | |
int | rtnl_link_sit_set_ip6rd_prefixlen (struct rtnl_link *link, uint16_t prefixlen) |
Set ip6rd prefix length. More... | |
int | rtnl_link_sit_get_ip6rd_prefixlen (struct rtnl_link *link, uint16_t *prefixlen) |
Get ip6rd prefix length. More... | |
int | rtnl_link_sit_set_ip6rd_relay_prefix (struct rtnl_link *link, uint32_t prefix) |
Set ip6rd relay prefix. More... | |
int | rtnl_link_sit_get_ip6rd_relay_prefix (const struct rtnl_link *link, uint32_t *prefix) |
Get ip6rd prefix length. More... | |
int | rtnl_link_sit_set_ip6rd_relay_prefixlen (struct rtnl_link *link, uint16_t prefixlen) |
Set ip6rd relay prefix length. More... | |
int | rtnl_link_sit_get_ip6rd_relay_prefixlen (struct rtnl_link *link, uint16_t *prefixlen) |
Get ip6rd relay prefix length. More... | |
int | rtnl_link_sit_set_fwmark (struct rtnl_link *link, uint32_t fwmark) |
Set SIT tunnel fwmark. More... | |
int | rtnl_link_sit_get_fwmark (struct rtnl_link *link, uint32_t *fwmark) |
Get SIT tunnel fwmark. More... | |
Variables | |
uint8_t | sit_info::ttl |
uint8_t | sit_info::tos |
uint8_t | sit_info::pmtudisc |
uint8_t | sit_info::proto |
uint16_t | sit_info::flags |
uint32_t | sit_info::link |
uint32_t | sit_info::local |
uint32_t | sit_info::remote |
struct in6_addr | sit_info::ip6rd_prefix |
uint32_t | sit_info::ip6rd_relay_prefix |
uint16_t | sit_info::ip6rd_prefixlen |
uint16_t | sit_info::ip6rd_relay_prefixlen |
uint32_t | sit_info::fwmark |
uint32_t | sit_info::sit_mask |
sit link module
Link Type Name: "sit"
SIT Documentation (Netlink Routing Development Guide)
#define IS_SIT_LINK_ASSERT | ( | link, | |
sit | |||
) |
int rtnl_link_is_sit | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_add | ( | struct nl_sock * | sk, |
const char * | name | ||
) |
Create a new sit tunnel device.
sock | netlink socket |
name | name of the tunnel device |
Creates a new sit tunnel device in the kernel
Definition at line 423 of file sit.c.
References rtnl_link_add(), rtnl_link_put(), and rtnl_link_set_name().
int rtnl_link_sit_set_link | ( | struct rtnl_link * | link, |
uint32_t | index | ||
) |
uint32_t rtnl_link_sit_get_link | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_local | ( | struct rtnl_link * | link, |
uint32_t | addr | ||
) |
uint32_t rtnl_link_sit_get_local | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_remote | ( | struct rtnl_link * | link, |
uint32_t | addr | ||
) |
uint32_t rtnl_link_sit_get_remote | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_ttl | ( | struct rtnl_link * | link, |
uint8_t | ttl | ||
) |
uint8_t rtnl_link_sit_get_ttl | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_tos | ( | struct rtnl_link * | link, |
uint8_t | tos | ||
) |
uint8_t rtnl_link_sit_get_tos | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_pmtudisc | ( | struct rtnl_link * | link, |
uint8_t | pmtudisc | ||
) |
uint8_t rtnl_link_sit_get_pmtudisc | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_flags | ( | struct rtnl_link * | link, |
uint16_t | flags | ||
) |
uint16_t rtnl_link_sit_get_flags | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_proto | ( | struct rtnl_link * | link, |
uint8_t | proto | ||
) |
uint8_t rtnl_link_sit_get_proto | ( | struct rtnl_link * | link | ) |
int rtnl_link_sit_set_ip6rd_prefix | ( | struct rtnl_link * | link, |
const struct in6_addr * | prefix | ||
) |
int rtnl_link_sit_get_ip6rd_prefix | ( | const struct rtnl_link * | link, |
struct in6_addr * | prefix | ||
) |
int rtnl_link_sit_set_ip6rd_prefixlen | ( | struct rtnl_link * | link, |
uint16_t | prefixlen | ||
) |
int rtnl_link_sit_get_ip6rd_prefixlen | ( | struct rtnl_link * | link, |
uint16_t * | prefixlen | ||
) |
int rtnl_link_sit_set_ip6rd_relay_prefix | ( | struct rtnl_link * | link, |
uint32_t | prefix | ||
) |
int rtnl_link_sit_get_ip6rd_relay_prefix | ( | const struct rtnl_link * | link, |
uint32_t * | prefix | ||
) |
int rtnl_link_sit_set_ip6rd_relay_prefixlen | ( | struct rtnl_link * | link, |
uint16_t | prefixlen | ||
) |
int rtnl_link_sit_get_ip6rd_relay_prefixlen | ( | struct rtnl_link * | link, |
uint16_t * | prefixlen | ||
) |
int rtnl_link_sit_set_fwmark | ( | struct rtnl_link * | link, |
uint32_t | fwmark | ||
) |
int rtnl_link_sit_get_fwmark | ( | struct rtnl_link * | link, |
uint32_t * | fwmark | ||
) |