libnl 3.5.0

ipvti.h
1 /*
2 * netlink/route/link/ipvti.h IPVTI 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_IPVTI_H_
13 #define NETLINK_LINK_IPVTI_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/route/link.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 extern struct rtnl_link *rtnl_link_ipvti_alloc(void);
22 extern int rtnl_link_ipvti_add(struct nl_sock *sk, const char *name);
23
24 extern int rtnl_link_is_ipvti(struct rtnl_link *link);
25
26 extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index);
27 extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link);
28
29 extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey);
30 extern uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link);
31
32 extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey);
33 extern uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link);
34
35 extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr);
36 extern uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link);
37
38 extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr);
39 extern uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link);
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif
rtnl_link_ipvti_get_ikey
uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link)
Get IPVTI tunnel ikey.
Definition: ipvti.c:369
rtnl_link_ipvti_get_remote
uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link)
Get IPVTI tunnel remote address.
Definition: ipvti.c:471
rtnl_link_ipvti_set_okey
int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey)
Set IPVTI tunnel set okey.
Definition: ipvti.c:385
rtnl_link_is_ipvti
int rtnl_link_is_ipvti(struct rtnl_link *link)
Check if link is a IPVTI link.
Definition: ipvti.c:281
rtnl_link
Link object.
rtnl_link_ipvti_add
int rtnl_link_ipvti_add(struct nl_sock *sk, const char *name)
Create a new ipvti tunnel device.
Definition: ipvti.c:293
rtnl_link_ipvti_set_ikey
int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey)
Set IPVTI tunnel set ikey.
Definition: ipvti.c:351
rtnl_link_ipvti_get_okey
uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link)
Get IPVTI tunnel okey.
Definition: ipvti.c:403
rtnl_link_ipvti_get_local
uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link)
Get IPVTI tunnel local address.
Definition: ipvti.c:437
rtnl_link_ipvti_set_link
int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index)
Set IPVTI tunnel interface index.
Definition: ipvti.c:317
rtnl_link_ipvti_set_local
int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr)
Set IPVTI tunnel local address.
Definition: ipvti.c:419
rtnl_link_ipvti_get_link
uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link)
Get IPVTI tunnel interface index.
Definition: ipvti.c:335
rtnl_link_ipvti_set_remote
int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr)
Set IPVTI tunnel remote address.
Definition: ipvti.c:453