flow_matches.IpTos: fix DSCP values
The lower 2 bits of the TOS byte are for ECN.
diff --git a/tests/FuncUtils.py b/tests/FuncUtils.py
index 9e3fea6..45c12fb 100644
--- a/tests/FuncUtils.py
+++ b/tests/FuncUtils.py
@@ -367,7 +367,7 @@
#Generate a Match on IP Type of service flow
#Create a simple tcp packet and generate match on Type of service
- pkt_iptos = simple_tcp_packet(ip_tos=30)
+ pkt_iptos = simple_tcp_packet(ip_tos=28)
match = parse.packet_to_flow_match(pkt_iptos)
self.assertTrue(match is not None, "Could not generate flow match from pkt")
diff --git a/tests/flow_matches.py b/tests/flow_matches.py
index 9edd4c0..4b12a95 100644
--- a/tests/flow_matches.py
+++ b/tests/flow_matches.py
@@ -414,7 +414,7 @@
receive_pkt_check(self.dataplane,pkt,[yes_ports],no_ports,self)
#Create a non-matching packet , verify packet_in get generated
- pkt2 = simple_tcp_packet(ip_tos=2);
+ pkt2 = simple_tcp_packet(ip_tos=4);
self.dataplane.send(of_ports[0], str(pkt2))
(response, raw) = self.controller.poll(ofp.OFPT_PACKET_IN,timeout=4)
self.assertTrue(response is not None, "PacketIn not received for non matching packet")