diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-04-04 17:06:36 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-04-04 10:08:02 -0700 |
commit | 22b65e4d3da7f812b7c1dbc3abcaedb8f05dfb96 (patch) | |
tree | b77c6b40adc9132c82cf12bb72def664780181e9 /tests | |
parent | 0056086d7554d892d573d1033b0d9c52a1e2d520 (diff) | |
download | openvswitch-22b65e4d3da7f812b7c1dbc3abcaedb8f05dfb96.tar.gz |
OVN: add tcp_reset{} action support
tcp_reset action transforms the current TCP segment according to the
following pseudocode:
if (tcp.ack) {
tcp.seq = tcp.ack;
} else {
tcp.ack = tcp.seq + length(tcp.payload);
tcp.seq = 0;
}
tcp.flags = RST;
Then, the action drops all TCP options and payload data, and updates
the TCP checksum. IP ttl is set to 255.
Prerequisite: tcp
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovn.at | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ovn.at b/tests/ovn.at index 5f985f345..4cd3bbf9b 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -1135,6 +1135,16 @@ icmp4 { }; encodes as controller(userdata=00.00.00.0a.00.00.00.00) has prereqs ip4 +# tcp_reset +tcp_reset { eth.dst = ff:ff:ff:ff:ff:ff; output; }; output; + encodes as controller(userdata=00.00.00.0b.00.00.00.00.00.19.00.10.80.00.06.06.ff.ff.ff.ff.ff.ff.00.00.ff.ff.00.10.00.00.23.20.00.0e.ff.f8.40.00.00.00),resubmit(,64) + has prereqs tcp + +tcp_reset { }; + formats as tcp_reset { drop; }; + encodes as controller(userdata=00.00.00.0b.00.00.00.00) + has prereqs tcp + # Contradictionary prerequisites (allowed but not useful): ip4.src = ip6.src[0..31]; encodes as move:NXM_NX_IPV6_SRC[0..31]->NXM_OF_IP_SRC[] |