• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * netlink/route/cls/matchall.h	matchall 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) 2017 Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
10  */
11 
12 #ifndef NETLINK_MATCHALL_H_
13 #define NETLINK_MATCHALL_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/route/classifier.h>
18 #include <netlink/route/action.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 extern int	rtnl_mall_set_classid(struct rtnl_cls *, uint32_t);
25 extern int	rtnl_mall_get_classid(struct rtnl_cls *, uint32_t *);
26 extern int	rtnl_mall_set_flags(struct rtnl_cls *, uint32_t);
27 extern int	rtnl_mall_get_flags(struct rtnl_cls *, uint32_t *);
28 extern int	rtnl_mall_append_action(struct rtnl_cls *, struct rtnl_act *);
29 extern struct rtnl_act *rtnl_mall_get_first_action(struct rtnl_cls *);
30 extern int	rtnl_mall_del_action(struct rtnl_cls *, struct rtnl_act *);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
37