libnl: /data/src/libnl3/include/netlink/route/cls/basic.h Source File

libnl 3.10.0

basic.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2008-2010 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef NETLINK_BASIC_H_
7#define NETLINK_BASIC_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/classifier.h>
11#include <netlink/route/cls/ematch.h>
12#include <netlink/route/action.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18extern void rtnl_basic_set_target(struct rtnl_cls *, uint32_t);
19extern uint32_t rtnl_basic_get_target(struct rtnl_cls *);
20extern void rtnl_basic_set_ematch(struct rtnl_cls *,
21 struct rtnl_ematch_tree *);
22extern struct rtnl_ematch_tree *rtnl_basic_get_ematch(struct rtnl_cls *);
23extern int rtnl_basic_add_action(struct rtnl_cls *, struct rtnl_act *);
24extern int rtnl_basic_del_action(struct rtnl_cls *, struct rtnl_act *);
25extern struct rtnl_act* rtnl_basic_get_action(struct rtnl_cls *);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif
rtnl_act
Definition nl-route.h:122