Deleted Added
sdiff udiff text old ( 194660 ) new ( 195699 )
full compact
1/**************************************************************************
2
3Copyright (c) 2008-2009, BitGravity Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 11 unchanged lines hidden (view full) ---

20LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28$FreeBSD: head/sys/net/flowtable.h 195699 2009-07-14 22:48:30Z rwatson $
29
30***************************************************************************/
31
32#ifndef _NET_FLOWTABLE_H_
33#define _NET_FLOWTABLE_H_
34
35#ifdef _KERNEL
36
37#define FL_HASH_PORTS (1<<0) /* hash 4-tuple + protocol */
38#define FL_PCPU (1<<1) /* pcpu cache */
39
40struct flowtable;
41VNET_DECLARE(struct flowtable *, ip_ft);
42#define V_ip_ft VNET_GET(ip_ft)
43
44struct flowtable *flowtable_alloc(int nentry, int flags);
45
46/*
47 * Given a flow table, look up the L3 and L2 information and
48 * return it in the route.
49 *
50 */
51int flowtable_lookup(struct flowtable *ft, struct mbuf *m,
52 struct route *ro);
53
54#endif /* _KERNEL */
55#endif