12 #ifndef NETLINK_CLASS_MODULES_H_
13 #define NETLINK_CLASS_MODULES_H_
15 #include <netlink/netlink.h>
35 int (*
co_dump[NL_DUMP_MAX+1])(
struct rtnl_cls *,
40 struct nl_msg *(*co_get_opts)(
struct rtnl_cls *);
55 int (*
co_clone)(
struct rtnl_cls *,
struct rtnl_cls *);
66 extern struct rtnl_cls_ops * __rtnl_cls_lookup_ops(
const char *kind);
char co_kind[32]
Kind/Name of classifier.
int(* co_clone)(struct rtnl_cls *, struct rtnl_cls *)
Called whenever a classifier object needs to be cloned.
int rtnl_cls_unregister(struct rtnl_cls_ops *cops)
Unregister a classifier module.
struct rtnl_cls_ops * rtnl_cls_lookup_ops(struct rtnl_cls *cls)
Lookup classifier operations for a classifier object.
int(* co_dump[NL_DUMP_MAX+1])(struct rtnl_cls *, struct nl_dump_params *, int)
Dump callbacks.
int(* co_msg_parser)(struct rtnl_cls *)
TCA_OPTIONS message parser.
struct rtnl_cls_ops * co_next
INTERNAL (Do not use)
int rtnl_cls_register(struct rtnl_cls_ops *cops)
Register a classifier module.
void(* co_free_data)(struct rtnl_cls *)
Called before a class object gets destroyed.