libnl 3.5.0

ip6tnl.h
1 /*
2 * netlink/route/link/ip6tnl.h IP6TNL interface
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2014 Susant Sahani <susant@redhat.com>
10 */
11
12 #ifndef NETLINK_LINK_IP6TNL_H_
13 #define NETLINK_LINK_IP6TNL_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/route/link.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 extern struct rtnl_link *rtnl_link_ip6_tnl_alloc(void);
23 extern int rtnl_link_ip6_tnl_add(struct nl_sock *sk, const char *name);
24
25 extern int rtnl_link_is_ip6_tnl(struct rtnl_link *link);
26
27 extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index);
28 extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link);
29
30 extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *);
31 extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr);
32
33 extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *);
34 extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *);
35
36 extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl);
37 extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link);
38
39 extern int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos);
40 extern uint8_t rtnl_link_ip6_tnl_get_tos(struct rtnl_link *link);
41
42 extern int rtnl_link_ip6_tnl_set_encaplimit(struct rtnl_link *link, uint8_t encap_limit);
43 extern uint8_t rtnl_link_ip6_tnl_get_encaplimit(struct rtnl_link *link);
44
45 extern int rtnl_link_ip6_tnl_set_flags(struct rtnl_link *link, uint32_t flags);
46 extern uint32_t rtnl_link_ip6_tnl_get_flags(struct rtnl_link *link);
47
48 extern uint32_t rtnl_link_ip6_tnl_get_flowinfo(struct rtnl_link *link);
49 extern int rtnl_link_ip6_tnl_set_flowinfo(struct rtnl_link *link, uint32_t flowinfo);
50
51 extern int rtnl_link_ip6_tnl_set_proto(struct rtnl_link *link, uint8_t proto);
52 extern uint8_t rtnl_link_ip6_tnl_get_proto(struct rtnl_link *link);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif
rtnl_link_ip6_tnl_get_ttl
uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link)
Get IP6_TNL tunnel ttl.
Definition: ip6tnl.c:512
rtnl_link_ip6_tnl_get_tos
uint8_t rtnl_link_ip6_tnl_get_tos(struct rtnl_link *link)
Get IP6_TNL tunnel tos.
Definition: ip6tnl.c:546
rtnl_link_ip6_tnl_get_flowinfo
uint32_t rtnl_link_ip6_tnl_get_flowinfo(struct rtnl_link *link)
Get IP6_TNL flowinfo.
Definition: ip6tnl.c:614
rtnl_link_ip6_tnl_add
int rtnl_link_ip6_tnl_add(struct nl_sock *sk, const char *name)
Create a new ip6_tnl tunnel device.
Definition: ip6tnl.c:363
rtnl_link_ip6_tnl_set_ttl
int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl)
Set IP6_TNL tunnel ttl.
Definition: ip6tnl.c:494
rtnl_link_ip6_tnl_set_proto
int rtnl_link_ip6_tnl_set_proto(struct rtnl_link *link, uint8_t proto)
Set IP6_TNL tunnel proto.
Definition: ip6tnl.c:664
rtnl_link_ip6_tnl_set_flags
int rtnl_link_ip6_tnl_set_flags(struct rtnl_link *link, uint32_t flags)
Set IP6_TNL tunnel flags.
Definition: ip6tnl.c:630
rtnl_link_ip6_tnl_set_remote
int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *)
Set IP6_TNL tunnel remote address.
Definition: ip6tnl.c:458
rtnl_link
Link object.
rtnl_link_ip6_tnl_set_tos
int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos)
Set IP6_TNL tunnel tos.
Definition: ip6tnl.c:528
rtnl_link_ip6_tnl_set_local
int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *)
Set IP6_TNL tunnel local address.
Definition: ip6tnl.c:422
rtnl_link_ip6_tnl_get_encaplimit
uint8_t rtnl_link_ip6_tnl_get_encaplimit(struct rtnl_link *link)
Get IP6_TNL encaplimit.
Definition: ip6tnl.c:580
rtnl_link_ip6_tnl_set_flowinfo
int rtnl_link_ip6_tnl_set_flowinfo(struct rtnl_link *link, uint32_t flowinfo)
Set IP6_TNL tunnel flowinfo.
Definition: ip6tnl.c:596
rtnl_link_ip6_tnl_get_proto
uint8_t rtnl_link_ip6_tnl_get_proto(struct rtnl_link *link)
Get IP6_TNL proto.
Definition: ip6tnl.c:682
rtnl_link_ip6_tnl_set_encaplimit
int rtnl_link_ip6_tnl_set_encaplimit(struct rtnl_link *link, uint8_t encap_limit)
Set IP6_TNL tunnel encap limit.
Definition: ip6tnl.c:562
rtnl_link_ip6_tnl_get_flags
uint32_t rtnl_link_ip6_tnl_get_flags(struct rtnl_link *link)
Get IP6_TNL path flags.
Definition: ip6tnl.c:648
rtnl_link_ip6_tnl_get_local
int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr)
Get IP6_TNL tunnel local address.
Definition: ip6tnl.c:440
rtnl_link_is_ip6_tnl
int rtnl_link_is_ip6_tnl(struct rtnl_link *link)
Check if link is a IP6_TNL link.
Definition: ip6tnl.c:350
rtnl_link_ip6_tnl_get_link
uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link)
Get IP6_TNL tunnel interface index.
Definition: ip6tnl.c:406
rtnl_link_ip6_tnl_set_link
int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index)
Set IP6_TNL tunnel interface index.
Definition: ip6tnl.c:388
rtnl_link_ip6_tnl_get_remote
int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *)
Get IP6_TNL tunnel remote address.
Definition: ip6tnl.c:476