libnl 3.5.0

basic.h
1 /*
2 * netlink/route/cls/basic.h Basic Classifier
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) 2008-2010 Thomas Graf <tgraf@suug.ch>
10 */
11
12 #ifndef NETLINK_BASIC_H_
13 #define NETLINK_BASIC_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/route/classifier.h>
17 #include <netlink/route/cls/ematch.h>
18 #include <netlink/route/action.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 extern void rtnl_basic_set_target(struct rtnl_cls *, uint32_t);
25 extern uint32_t rtnl_basic_get_target(struct rtnl_cls *);
26 extern void rtnl_basic_set_ematch(struct rtnl_cls *,
27 struct rtnl_ematch_tree *);
28 extern struct rtnl_ematch_tree *rtnl_basic_get_ematch(struct rtnl_cls *);
29 extern int rtnl_basic_add_action(struct rtnl_cls *, struct rtnl_act *);
30 extern int rtnl_basic_del_action(struct rtnl_cls *, struct rtnl_act *);
31 extern struct rtnl_act* rtnl_basic_get_action(struct rtnl_cls *);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif