libnl: /data/src/libnl3/include/netlink/cli/tc.h Source File

libnl 3.10.0

tc.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef __NETLINK_CLI_TC_H_
7#define __NETLINK_CLI_TC_H_
8
9#include <netlink/route/tc.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15struct rtnl_tc_ops;
16
17extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *);
18extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *);
19extern void nl_cli_tc_parse_handle(struct rtnl_tc *, char *, int);
20extern void nl_cli_tc_parse_mtu(struct rtnl_tc *, char *);
21extern void nl_cli_tc_parse_mpu(struct rtnl_tc *, char *);
22extern void nl_cli_tc_parse_overhead(struct rtnl_tc *, char *);
23extern void nl_cli_tc_parse_linktype(struct rtnl_tc *, char *);
24extern void nl_cli_tc_parse_kind(struct rtnl_tc *, char *);
25
26 struct nl_cli_tc_module
27{
28 const char * tm_name;
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;
33};
34
35extern struct nl_cli_tc_module *nl_cli_tc_lookup(struct rtnl_tc_ops *);
36extern void nl_cli_tc_register(struct nl_cli_tc_module *);
37extern void nl_cli_tc_unregister(struct nl_cli_tc_module *);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif
nl_cli_tc_module
Definition tc.h:27
nl_list_head
Definition list.h:16
rtnl_tc
Definition nl-route.h:114