2009-09-02 18:31:14 +02:00
|
|
|
/*
|
|
|
|
* netlink/route/cls/basic.h Basic 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.
|
|
|
|
*
|
2013-12-11 09:10:26 +01:00
|
|
|
* Copyright (c) 2008-2010 Thomas Graf <tgraf@suug.ch>
|
2009-09-02 18:31:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NETLINK_BASIC_H_
|
|
|
|
#define NETLINK_BASIC_H_
|
|
|
|
|
|
|
|
#include <netlink/netlink.h>
|
2012-05-16 13:42:05 +02:00
|
|
|
#include <netlink/route/classifier.h>
|
|
|
|
#include <netlink/route/cls/ematch.h>
|
2013-12-03 20:16:10 -08:00
|
|
|
#include <netlink/route/action.h>
|
2009-09-02 18:31:14 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-10-29 00:20:42 +02:00
|
|
|
extern void rtnl_basic_set_target(struct rtnl_cls *, uint32_t);
|
|
|
|
extern uint32_t rtnl_basic_get_target(struct rtnl_cls *);
|
|
|
|
extern void rtnl_basic_set_ematch(struct rtnl_cls *,
|
|
|
|
struct rtnl_ematch_tree *);
|
|
|
|
extern struct rtnl_ematch_tree *rtnl_basic_get_ematch(struct rtnl_cls *);
|
2013-12-03 20:16:10 -08:00
|
|
|
extern int rtnl_basic_add_action(struct rtnl_cls *, struct rtnl_act *);
|
2013-12-05 15:48:30 -08:00
|
|
|
extern int rtnl_basic_del_action(struct rtnl_cls *, struct rtnl_act *);
|
2009-09-02 18:31:14 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|