13#include <netlink-private/netlink.h>
14#include <netlink-private/tc.h>
15#include <netlink/netlink.h>
16#include <netlink-private/route/tc-api.h>
17#include <netlink/route/qdisc.h>
18#include <netlink/utils.h>
24static int dumb_msg_parser(
struct rtnl_tc *tc,
void *data)
29static void dumb_dump_line(
struct rtnl_tc *tc,
void *data,
34static int dumb_msg_fill(
struct rtnl_tc *tc,
void *data,
struct nl_msg *msg)
39static struct rtnl_tc_ops ingress_ops = {
41 .to_type = RTNL_TC_TYPE_QDISC,
42 .to_size =
sizeof(
struct dumb),
43 .to_msg_parser = dumb_msg_parser,
45 .to_msg_fill = dumb_msg_fill,
48static void __init ingress_init(
void)
53static void __exit ingress_exit(
void)
int rtnl_tc_register(struct rtnl_tc_ops *ops)
Register a traffic control module.
void rtnl_tc_unregister(struct rtnl_tc_ops *ops)
Unregister a traffic control module.
@ NL_DUMP_LINE
Dump object briefly on one line.