Tizen 2.1 base
[platform/upstream/libnl2.git] / include / netlink / route / cls / 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-2009 Thomas Graf <tgraf@suug.ch>
10  */
11
12 #ifndef NETLINK_BASIC_H_
13 #define NETLINK_BASIC_H_
14
15 #include <netlink/netlink.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 extern struct rtnl_cls_ops *rtnl_basic_get_ops(void);
22 extern int      rtnl_basic_set_classid(struct rtnl_cls *, uint32_t);
23 extern uint32_t rtnl_basic_get_classid(struct rtnl_cls *);
24 extern int      rtnl_basic_set_ematch(struct rtnl_cls *,
25                                       struct rtnl_ematch_tree *);
26 extern struct rtnl_ematch_tree *
27                 rtnl_basic_get_ematch(struct rtnl_cls *);
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif