TCP flags matching support.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 28 Oct 2013 20:54:40 +0000 (13:54 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Oct 2013 16:43:59 +0000 (09:43 -0700)
commitdc235f7fbcff39b318b715f9d3d01f97b2634357
tree856bf86db33b7c71a8dcdeb7baa457a806d4d8ba
parenta66733a8bc1c42d92f498108d7e27987989dc206
TCP flags matching support.

    tcp_flags=flags/mask
        Bitwise  match on TCP flags.  The flags and mask are 16-bit num‐
        bers written in decimal or in hexadecimal prefixed by 0x.   Each
        1-bit  in  mask requires that the corresponding bit in port must
        match.  Each 0-bit in mask causes the corresponding  bit  to  be
        ignored.

        TCP  protocol  currently  defines  9 flag bits, and additional 3
        bits are reserved (must be transmitted as zero), see  RFCs  793,
        3168, and 3540.  The flag bits are, numbering from the least
significant bit:

        0: FIN No more data from sender.

        1: SYN Synchronize sequence numbers.

        2: RST Reset the connection.

        3: PSH Push function.

        4: ACK Acknowledgement field significant.

        5: URG Urgent pointer field significant.

        6: ECE ECN Echo.

        7: CWR Congestion Windows Reduced.

        8: NS  Nonce Sum.

        9-11:  Reserved.

        12-15: Not matchable, must be zero.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
20 files changed:
datapath/flow.c
datapath/flow.h
datapath/flow_netlink.c
include/linux/openvswitch.h
include/openflow/nicira-ext.h
lib/flow.c
lib/flow.h
lib/match.c
lib/match.h
lib/meta-flow.c
lib/meta-flow.h
lib/nx-match.c
lib/odp-execute.c
lib/odp-util.c
lib/ofp-util.c
ofproto/ofproto-dpif-xlate.c
tests/ofp-print.at
tests/ofproto-dpif.at
tests/ovs-ofctl.at
utilities/ovs-ofctl.8.in