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

libnl 3.12.0

xfrmi.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2019 Eyal Birger <eyal.birger@gmail.com>
4 *
5 * Based on netlink/route/link/ipvti.h
6 */
7
8#ifndef NETLINK_LINK_XFRMI_H_
9#define NETLINK_LINK_XFRMI_H_
10
11#include <netlink/netlink.h>
12#include <netlink/route/link.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17 extern struct rtnl_link *rtnl_link_xfrmi_alloc(void);
18
19 extern int rtnl_link_is_xfrmi(struct rtnl_link *link);
20
21 extern int rtnl_link_xfrmi_set_link(struct rtnl_link *link, uint32_t index);
22 extern int rtnl_link_xfrmi_get_link(struct rtnl_link *link, uint32_t *out_link);
23
24 extern int rtnl_link_xfrmi_set_if_id(struct rtnl_link *link, uint32_t if_id);
25 extern int rtnl_link_xfrmi_get_if_id(struct rtnl_link *link, uint32_t *out_if_id);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif
rtnl_link_xfrmi_set_link
int rtnl_link_xfrmi_set_link(struct rtnl_link *link, uint32_t index)
Set XFRMI link interface index.
Definition xfrmi.c:238
rtnl_link_is_xfrmi
int rtnl_link_is_xfrmi(struct rtnl_link *link)
Check if link is a XFRMI link.
Definition xfrmi.c:225
rtnl_link_xfrmi_set_if_id
int rtnl_link_xfrmi_set_if_id(struct rtnl_link *link, uint32_t if_id)
Set XFRMI if_id.
Definition xfrmi.c:277
rtnl_link_xfrmi_get_if_id
int rtnl_link_xfrmi_get_if_id(struct rtnl_link *link, uint32_t *out_if_id)
Get XFRMI if_id.
Definition xfrmi.c:296
rtnl_link_xfrmi_get_link
int rtnl_link_xfrmi_get_link(struct rtnl_link *link, uint32_t *out_link)
Get XFRMI link interface index.
Definition xfrmi.c:257
rtnl_link
Link object.
Definition nl-route.h:29