2 * netlink/route/classifier-modules.h Classifier Module API
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
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
12 #ifndef NETLINK_CLASS_MODULES_H_
13 #define NETLINK_CLASS_MODULES_H_
15 #include <netlink/netlink.h>
18 * Classifier operations
24 * Kind/Name of classifier
31 int (*co_dump[NL_DUMP_MAX+1])(struct rtnl_cls *,
32 struct nl_dump_params *, int);
34 * Must return the contents supposed to be in TCA_OPTIONS
36 struct nl_msg *(*co_get_opts)(struct rtnl_cls *);
39 * TCA_OPTIONS message parser
41 int (*co_msg_parser)(struct rtnl_cls *);
44 * Called before a class object gets destroyed
46 void (*co_free_data)(struct rtnl_cls *);
49 * INTERNAL (Do not use)
51 struct rtnl_cls_ops *co_next;
54 extern int rtnl_cls_register(struct rtnl_cls_ops *);
55 extern int rtnl_cls_unregister(struct rtnl_cls_ops *);