libnl: /data/src/libnl3/include/netlink/route/link/ipvti.h Source File

libnl 3.10.0

ipvti.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2014 Susant Sahani <susant@redhat.com>
4 */
5
6#ifndef NETLINK_LINK_IPVTI_H_
7#define NETLINK_LINK_IPVTI_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15 extern struct rtnl_link *rtnl_link_ipvti_alloc(void);
16 extern int rtnl_link_ipvti_add(struct nl_sock *sk, const char *name);
17
18 extern int rtnl_link_is_ipvti(struct rtnl_link *link);
19
20 extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index);
21 extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link);
22
23 extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey);
24 extern uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link);
25
26 extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey);
27 extern uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link);
28
29 extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr);
30 extern uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link);
31
32 extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr);
33 extern uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link);
34
35 extern int rtnl_link_ipvti_set_fwmark(struct rtnl_link *link, uint32_t fwmark);
36 extern int rtnl_link_ipvti_get_fwmark(struct rtnl_link *link, uint32_t *fwmark);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif
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:365
rtnl_link_ipvti_get_ikey
uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link)
Get IPVTI tunnel ikey.
Definition ipvti.c:383
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:433
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:467
rtnl_link_ipvti_get_fwmark
int rtnl_link_ipvti_get_fwmark(struct rtnl_link *link, uint32_t *fwmark)
Get IPVTI tunnel fwmark.
Definition ipvti.c:520
rtnl_link_ipvti_get_local
uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link)
Get IPVTI tunnel local address.
Definition ipvti.c:451
rtnl_link_ipvti_set_fwmark
int rtnl_link_ipvti_set_fwmark(struct rtnl_link *link, uint32_t fwmark)
Set IPVTI tunnel fwmark.
Definition ipvti.c:501
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:399
rtnl_link_is_ipvti
int rtnl_link_is_ipvti(struct rtnl_link *link)
Check if link is a IPVTI link.
Definition ipvti.c:295
rtnl_link_ipvti_get_link
uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link)
Get IPVTI tunnel interface index.
Definition ipvti.c:349
rtnl_link_ipvti_get_remote
uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link)
Get IPVTI tunnel remote address.
Definition ipvti.c:485
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:331
rtnl_link_ipvti_get_okey
uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link)
Get IPVTI tunnel okey.
Definition ipvti.c:417
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:307
rtnl_link
Link object.
Definition nl-route.h:29