libnl 1.1

include/netlink/route/cls/u32.h

00001 /*
00002  * netlink/route/cls/u32.h      u32 classifier
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_U32_H_
00013 #define NETLINK_U32_H_
00014 
00015 #include <netlink/netlink.h>
00016 #include <netlink/cache.h>
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 extern void     rtnl_u32_set_handle(struct rtnl_cls *, int, int, int);
00023 extern int      rtnl_u32_set_classid(struct rtnl_cls *, uint32_t);
00024 
00025 extern int      rtnl_u32_set_flags(struct rtnl_cls *, int);
00026 extern int      rtnl_u32_add_key(struct rtnl_cls *, uint32_t, uint32_t,
00027                                  int, int);
00028 extern int      rtnl_u32_add_key_uint8(struct rtnl_cls *, uint8_t, uint8_t,
00029                                        int, int);
00030 extern int      rtnl_u32_add_key_uint16(struct rtnl_cls *, uint16_t, uint16_t,
00031                                         int, int);
00032 extern int      rtnl_u32_add_key_uint32(struct rtnl_cls *, uint32_t, uint32_t,
00033                                         int, int);
00034 extern int      rtnl_u32_add_key_in_addr(struct rtnl_cls *, struct in_addr *,
00035                                          uint8_t, int, int);
00036 extern int      rtnl_u32_add_key_in6_addr(struct rtnl_cls *, struct in6_addr *,
00037                                           uint8_t, int, int);
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042 
00043 #endif