pktloc.h revision db5bd57899affbcaf42ac0b93c5c7be8f51ca390
1/*
2 * netlink/route/pktloc.h         Packet Location Aliasing
3 *
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
7 *	of the License.
8 *
9 * Copyright (c) 2010 Thomas Graf <tgraf@suug.ch>
10 */
11
12#ifndef NETLINK_PKTLOC_H_
13#define NETLINK_PKTLOC_H_
14
15#include <netlink/netlink.h>
16#include <netlink/cache.h>
17#include <netlink/route/tc.h>
18
19#include <linux/tc_ematch/tc_em_cmp.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25struct rtnl_pktloc
26{
27	char *			name;
28	uint8_t			align:4;
29	uint8_t			layer:4;
30	uint8_t			flags;
31	uint16_t		offset;
32	uint32_t		mask;
33
34	struct nl_list_head	list;
35};
36
37extern int rtnl_pktloc_lookup(const char *, struct rtnl_pktloc **);
38
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif
45