9 #include <netlink/netlink.h>
10 #include <netlink/cache.h>
11 #include <netlink/route/classifier.h>
12 #include <netlink/route/action.h>
18 extern void rtnl_u32_set_handle(
struct rtnl_cls *,
int,
int,
int);
19 extern int rtnl_u32_set_classid(
struct rtnl_cls *, uint32_t);
20 extern int rtnl_u32_get_classid(
struct rtnl_cls *, uint32_t *);
21 extern int rtnl_u32_set_divisor(
struct rtnl_cls *, uint32_t);
22 extern int rtnl_u32_set_link(
struct rtnl_cls *, uint32_t);
23 extern int rtnl_u32_set_hashtable(
struct rtnl_cls *, uint32_t);
24 extern int rtnl_u32_set_hashmask(
struct rtnl_cls *, uint32_t, uint32_t);
25 extern int rtnl_u32_set_selector(
struct rtnl_cls *,
int, uint32_t,
char, uint16_t,
char);
26 extern int rtnl_u32_set_cls_terminal(
struct rtnl_cls *);
28 extern int rtnl_u32_set_flags(
struct rtnl_cls *,
int);
29 extern int rtnl_u32_add_mark(
struct rtnl_cls *, uint32_t, uint32_t);
30 extern int rtnl_u32_del_mark(
struct rtnl_cls *);
33 extern int rtnl_u32_get_key(
struct rtnl_cls *, uint8_t, uint32_t *, uint32_t *,
35 extern int rtnl_u32_add_key_uint8(
struct rtnl_cls *, uint8_t, uint8_t,
41 extern int rtnl_u32_add_key_in_addr(
struct rtnl_cls *,
const struct in_addr *,
43 extern int rtnl_u32_add_key_in6_addr(
struct rtnl_cls *,
const struct in6_addr *,
45 extern int rtnl_u32_add_action(
struct rtnl_cls *,
struct rtnl_act *);
46 extern int rtnl_u32_del_action(
struct rtnl_cls *,
struct rtnl_act *);
47 extern struct rtnl_act* rtnl_u32_get_action(
struct rtnl_cls *);
int rtnl_u32_get_key(struct rtnl_cls *, uint8_t, uint32_t *, uint32_t *, int *, int *)
Get the 32-bit key from the selector.
int rtnl_u32_add_key(struct rtnl_cls *, uint32_t, uint32_t, int, int)
Append new 32-bit key to the selector.
int rtnl_u32_add_key_uint32(struct rtnl_cls *, uint32_t, uint32_t, int, int)
Append new selector key to match a 32-bit number.
int rtnl_u32_add_key_uint16(struct rtnl_cls *, uint16_t, uint16_t, int, int)
Append new selector key to match a 16-bit number.