2007-09-15 01:28:01 +02:00
|
|
|
/*
|
|
|
|
* netlink/route/cls/u32.h u32 classifier
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NETLINK_U32_H_
|
|
|
|
#define NETLINK_U32_H_
|
|
|
|
|
|
|
|
#include <netlink/netlink.h>
|
|
|
|
#include <netlink/cache.h>
|
2012-05-16 13:42:05 +02:00
|
|
|
#include <netlink/route/classifier.h>
|
2013-11-08 10:47:51 -08:00
|
|
|
#include <netlink/route/action.h>
|
2007-09-15 01:28:01 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern void rtnl_u32_set_handle(struct rtnl_cls *, int, int, int);
|
|
|
|
extern int rtnl_u32_set_classid(struct rtnl_cls *, uint32_t);
|
2015-03-03 22:05:34 -08:00
|
|
|
extern int rtnl_u32_get_classid(struct rtnl_cls *, uint32_t *);
|
2012-05-08 23:14:13 +02:00
|
|
|
extern int rtnl_u32_set_divisor(struct rtnl_cls *, uint32_t);
|
|
|
|
extern int rtnl_u32_set_link(struct rtnl_cls *, uint32_t);
|
2012-05-16 13:43:52 +02:00
|
|
|
extern int rtnl_u32_set_hashtable(struct rtnl_cls *, uint32_t);
|
2012-05-08 23:14:13 +02:00
|
|
|
extern int rtnl_u32_set_hashmask(struct rtnl_cls *, uint32_t, uint32_t);
|
|
|
|
extern int rtnl_u32_set_cls_terminal(struct rtnl_cls *);
|
2007-09-15 01:28:01 +02:00
|
|
|
|
|
|
|
extern int rtnl_u32_set_flags(struct rtnl_cls *, int);
|
2014-11-23 15:25:01 +01:00
|
|
|
extern int rtnl_u32_add_mark(struct rtnl_cls *, uint32_t, uint32_t);
|
|
|
|
extern int rtnl_u32_del_mark(struct rtnl_cls *);
|
2007-09-15 01:28:01 +02:00
|
|
|
extern int rtnl_u32_add_key(struct rtnl_cls *, uint32_t, uint32_t,
|
|
|
|
int, int);
|
2013-12-13 15:24:50 -08:00
|
|
|
extern int rtnl_u32_get_key(struct rtnl_cls *, uint8_t, uint32_t *, uint32_t *,
|
|
|
|
int *, int *);
|
2007-09-15 01:28:01 +02:00
|
|
|
extern int rtnl_u32_add_key_uint8(struct rtnl_cls *, uint8_t, uint8_t,
|
|
|
|
int, int);
|
|
|
|
extern int rtnl_u32_add_key_uint16(struct rtnl_cls *, uint16_t, uint16_t,
|
|
|
|
int, int);
|
|
|
|
extern int rtnl_u32_add_key_uint32(struct rtnl_cls *, uint32_t, uint32_t,
|
|
|
|
int, int);
|
2014-03-20 10:24:12 -07:00
|
|
|
extern int rtnl_u32_add_key_in_addr(struct rtnl_cls *, const struct in_addr *,
|
2007-09-15 01:28:01 +02:00
|
|
|
uint8_t, int, int);
|
2014-03-20 10:24:12 -07:00
|
|
|
extern int rtnl_u32_add_key_in6_addr(struct rtnl_cls *, const struct in6_addr *,
|
2007-09-15 01:28:01 +02:00
|
|
|
uint8_t, int, int);
|
2013-11-08 10:47:51 -08:00
|
|
|
extern int rtnl_u32_add_action(struct rtnl_cls *, struct rtnl_act *);
|
2013-12-05 15:48:29 -08:00
|
|
|
extern int rtnl_u32_del_action(struct rtnl_cls *, struct rtnl_act *);
|
2007-09-15 01:28:01 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|