Deleted Added
full compact
flowtable.h (194660) flowtable.h (195699)
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
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 194660 2009-06-22 21:19:24Z zec $
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;
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;
41#ifdef VIMAGE_GLOBALS
42extern struct flowtable *ip_ft;
43#endif
41VNET_DECLARE(struct flowtable *, ip_ft);
42#define V_ip_ft VNET_GET(ip_ft)
44
45struct flowtable *flowtable_alloc(int nentry, int flags);
46
47/*
48 * Given a flow table, look up the L3 and L2 information and
49 * return it in the route.
50 *
51 */
52int flowtable_lookup(struct flowtable *ft, struct mbuf *m,
53 struct route *ro);
54
55#endif /* _KERNEL */
56#endif
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