2 * netlink/route/class.h Traffic Classes
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-2011 Thomas Graf <tgraf@suug.ch>
12 #ifndef NETLINK_CLASS_H_
13 #define NETLINK_CLASS_H_
15 #include <netlink/netlink.h>
16 #include <netlink/route/tc.h>
17 #include <netlink/route/qdisc.h>
25 extern struct rtnl_class *
26 rtnl_class_alloc(void);
27 extern void rtnl_class_put(struct rtnl_class *);
29 extern int rtnl_class_alloc_cache(struct nl_sock *, int,
31 extern struct rtnl_class *
32 rtnl_class_get(struct nl_cache *, int, uint32_t);
34 extern struct rtnl_qdisc *
35 rtnl_class_leaf_qdisc(struct rtnl_class *,
38 extern int rtnl_class_build_add_request(struct rtnl_class *, int,
40 extern int rtnl_class_add(struct nl_sock *, struct rtnl_class *,
43 extern int rtnl_class_build_delete_request(struct rtnl_class *,
45 extern int rtnl_class_delete(struct nl_sock *,
48 /* deprecated functions */
49 extern void rtnl_class_foreach_child(struct rtnl_class *,
51 void (*cb)(struct nl_object *,
54 __attribute__((deprecated));
55 extern void rtnl_class_foreach_cls(struct rtnl_class *,
57 void (*cb)(struct nl_object *,
60 __attribute__((deprecated));