1 /* SPDX-License-Identifier: LGPL-2.1-only */ 2 /* 3 * Copyright (c) 2008-2010 Thomas Graf <[email protected]> 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 15 extern "C" { 16 #endif 17 18 extern void rtnl_basic_set_target(struct rtnl_cls *, uint32_t); 19 extern uint32_t rtnl_basic_get_target(struct rtnl_cls *); 20 extern void rtnl_basic_set_ematch(struct rtnl_cls *, 21 struct rtnl_ematch_tree *); 22 extern struct rtnl_ematch_tree *rtnl_basic_get_ematch(struct rtnl_cls *); 23 extern int rtnl_basic_add_action(struct rtnl_cls *, struct rtnl_act *); 24 extern int rtnl_basic_del_action(struct rtnl_cls *, struct rtnl_act *); 25 extern struct rtnl_act* rtnl_basic_get_action(struct rtnl_cls *); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif 32