/build/buildd/libnl-1.0~pre6/include/netlink/route/classifier.h

00001 /*
00002  * netlink/route/classifier.h       Classifiers
00003  *
00004  *      This library is free software; you can redistribute it and/or
00005  *      modify it under the terms of the GNU Lesser General Public
00006  *      License as published by the Free Software Foundation version 2.1
00007  *      of the License.
00008  *
00009  * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 #ifndef NETLINK_CLASSIFIER_H_
00013 #define NETLINK_CLASSIFIER_H_
00014 
00015 #include <netlink/netlink.h>
00016 #include <netlink/cache.h>
00017 #include <netlink/route/tc.h>
00018 #include <netlink/utils.h>
00019 
00020 extern struct           rtnl_cls *rtnl_cls_alloc(void);
00021 extern void             rtnl_cls_put(struct rtnl_cls *);
00022 extern void             rtnl_cls_free(struct rtnl_cls *);
00023 
00024 extern struct nl_cache *rtnl_cls_alloc_cache(struct nl_handle *, int, uint32_t);
00025 
00026 /* classifier addition */
00027 extern int              rtnl_cls_add(struct nl_handle *, struct rtnl_cls *,
00028                                      int);
00029 extern struct nl_msg *  rtnl_cls_build_add_request(struct rtnl_cls *, int);
00030 
00031 extern struct nl_msg *rtnl_cls_build_change_request(struct rtnl_cls *, int);
00032 extern struct nl_msg *rtnl_cls_build_delete_request(struct rtnl_cls *, int);
00033 extern int  rtnl_cls_delete(struct nl_handle *, struct rtnl_cls *, int);
00034 
00035 /* attribute modification */
00036 extern void rtnl_cls_set_ifindex(struct rtnl_cls *, int);
00037 extern void rtnl_cls_set_handle(struct rtnl_cls *, uint32_t);
00038 extern void rtnl_cls_set_parent(struct rtnl_cls *, uint32_t);
00039 extern void rtnl_cls_set_kind(struct rtnl_cls *, const char *);
00040 
00041 extern void rtnl_cls_set_prio(struct rtnl_cls *, int);
00042 extern int  rtnl_cls_get_prio(struct rtnl_cls *);
00043 
00044 extern void rtnl_cls_set_protocol(struct rtnl_cls *, int);
00045 extern int  rtnl_cls_get_protocol(struct rtnl_cls *);
00046 
00047 #endif

Generated on Fri Apr 27 14:14:07 2007 for libnl by  doxygen 1.5.1