00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef NETLINK_QDISC_MODULES_H_
00013 #define NETLINK_QDISC_MODULES_H_
00014
00015 #include <netlink/netlink.h>
00016
00017
00018
00019
00020
00021 struct rtnl_qdisc_ops
00022 {
00023
00024
00025
00026 char qo_kind[32];
00027
00028
00029
00030
00031 int (*qo_dump[NL_DUMP_MAX+1])(struct rtnl_qdisc *,
00032 struct nl_dump_params *, int);
00033
00034
00035
00036
00037 struct nl_msg *(*qo_get_opts)(struct rtnl_qdisc *);
00038
00039
00040
00041
00042 int (*qo_msg_parser)(struct rtnl_qdisc *);
00043
00044
00045
00046
00047 void (*qo_free_data)(struct rtnl_qdisc *);
00048
00049
00050
00051
00052 struct rtnl_qdisc_ops *qo_next;
00053 };
00054
00055 extern int rtnl_qdisc_register(struct rtnl_qdisc_ops *);
00056 extern int rtnl_qdisc_unregister(struct rtnl_qdisc_ops *);
00057
00058 #endif