lib/flow: Add miniflow accessors and miniflow_get_tcp_flags().
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 18 Apr 2014 15:26:56 +0000 (08:26 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 18 Apr 2014 15:34:08 +0000 (08:34 -0700)
commitb7807e4f64c8c64bb6000767de72368306a95c90
treeb28fffb3c74d2290c81c91ce983b694d5e485dff
parent419681daf125576d25839eaefbb179b65e19c091
lib/flow: Add miniflow accessors and miniflow_get_tcp_flags().

Add inlined generic accessors for miniflow integer type fields, and a
new miniflow_get_tcp_flags() usinge these.  These will be used in a
later patch.

Some definitions also used in lib/packets.h had to be moved there to
resolve circular include dependencies.  Similarly, some inline
functions using struct flow are now in lib/flow.h.  IMO this is
cleaner, since now the lib/flow.h need not be included from
lib/packets.h.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
lib/flow.c
lib/flow.h
lib/packets.h
ofproto/ofproto-dpif-monitor.h
tests/test-classifier.c
tests/test-sflow.c