libnl 2.0

/tmp/buildd/libnl2-2.0/include/netlink/route/pktloc.h

00001 /*
00002  * netlink/route/pktloc.h         Packet Location Aliasing
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) 2010 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 #ifndef NETLINK_PKTLOC_H_
00013 #define NETLINK_PKTLOC_H_
00014 
00015 #include <netlink/netlink.h>
00016 #include <netlink/cache.h>
00017 #include <netlink/route/tc.h>
00018 
00019 #include <linux/tc_ematch/tc_em_cmp.h>
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 struct rtnl_pktloc
00026 {
00027         char *                  name;
00028         uint8_t                 align:4;
00029         uint8_t                 layer:4;
00030         uint8_t                 flags;
00031         uint16_t                offset;
00032         uint32_t                mask;
00033 
00034         struct nl_list_head     list;
00035 };
00036 
00037 extern int rtnl_pktloc_lookup(const char *, struct rtnl_pktloc **);
00038 
00039 
00040 #ifdef __cplusplus
00041 }
00042 #endif
00043 
00044 #endif