2
* netlink/cli/tc.h CLI Traffic Control Helpers
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) 2010-2011 Thomas Graf <tgraf@suug.ch>
12
#ifndef __NETLINK_CLI_TC_H_
13
#define __NETLINK_CLI_TC_H_
15
#include <netlink/route/tc-api.h>
17
extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *);
18
extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *);
19
extern void nl_cli_tc_parse_handle(struct rtnl_tc *, char *, int);
20
extern void nl_cli_tc_parse_mtu(struct rtnl_tc *, char *);
21
extern void nl_cli_tc_parse_mpu(struct rtnl_tc *, char *);
22
extern void nl_cli_tc_parse_overhead(struct rtnl_tc *, char *);
23
extern void nl_cli_tc_parse_linktype(struct rtnl_tc *, char *);
24
extern void nl_cli_tc_parse_kind(struct rtnl_tc *, char *);
26
struct nl_cli_tc_module
29
enum rtnl_tc_type tm_type;
30
struct rtnl_tc_ops * tm_ops;
31
void (*tm_parse_argv)(struct rtnl_tc *, int, char **);
32
struct nl_list_head tm_list;
35
extern struct nl_cli_tc_module *nl_cli_tc_lookup(struct rtnl_tc_ops *);
36
extern void nl_cli_tc_register(struct nl_cli_tc_module *);
37
extern void nl_cli_tc_unregister(struct nl_cli_tc_module *);