aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2013-10-23 04:44:59 -0400
committerJesse Gross <jesse@nicira.com>2013-11-01 21:43:45 -0400
commit5eb26b156e29eadcc21f73fb5d14497f0db24b86 (patch)
treec038f2ce812b576b011de5e640f6187447149e0e /net/openvswitch/flow.h
parentdf23e9f642830f10c505c8a3d57772ad1238c701 (diff)
openvswitch: 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: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/flow.h')
-rw-r--r--net/openvswitch/flow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h
index 204e0ccd116d..1510f51dbf74 100644
--- a/net/openvswitch/flow.h
+++ b/net/openvswitch/flow.h
@@ -93,6 +93,7 @@ struct sw_flow_key {
93 struct { 93 struct {
94 __be16 src; /* TCP/UDP/SCTP source port. */ 94 __be16 src; /* TCP/UDP/SCTP source port. */
95 __be16 dst; /* TCP/UDP/SCTP destination port. */ 95 __be16 dst; /* TCP/UDP/SCTP destination port. */
96 __be16 flags; /* TCP flags. */
96 } tp; 97 } tp;
97 struct { 98 struct {
98 u8 sha[ETH_ALEN]; /* ARP source hardware address. */ 99 u8 sha[ETH_ALEN]; /* ARP source hardware address. */
@@ -109,6 +110,7 @@ struct sw_flow_key {
109 struct { 110 struct {
110 __be16 src; /* TCP/UDP/SCTP source port. */ 111 __be16 src; /* TCP/UDP/SCTP source port. */
111 __be16 dst; /* TCP/UDP/SCTP destination port. */ 112 __be16 dst; /* TCP/UDP/SCTP destination port. */
113 __be16 flags; /* TCP flags. */
112 } tp; 114 } tp;
113 struct { 115 struct {
114 struct in6_addr target; /* ND target address. */ 116 struct in6_addr target; /* ND target address. */