summaryrefslogtreecommitdiff
path: root/utilities/ovs-tcpundump.in
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2019-10-22 10:55:59 -0400
committerBen Pfaff <blp@ovn.org>2019-10-23 10:22:11 -0700
commit1051576cf2b8a6ffddf849d984c250a8456e6144 (patch)
treec30748a43d8f8738883aaa396198ede85d6c5914 /utilities/ovs-tcpundump.in
parentc691cffb03ba3a7595f364c2766fdd2ace8c3842 (diff)
downloadopenvswitch-1051576cf2b8a6ffddf849d984c250a8456e6144.tar.gz
ovs-tcpundump: allow multiple packet lengths
The tcpundump tool expects all packets to be a length which aligns to exactly a 4-nibble boundary. This means packets like DNS requests will be stripped before being correctly processed. Fix this by allowing at least two nibbles (or one byte) alignment. Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'utilities/ovs-tcpundump.in')
-rwxr-xr-xutilities/ovs-tcpundump.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-tcpundump.in b/utilities/ovs-tcpundump.in
index 1ec4f2acc..ede5448b4 100755
--- a/utilities/ovs-tcpundump.in
+++ b/utilities/ovs-tcpundump.in
@@ -57,7 +57,7 @@ if __name__ == "__main__":
sys.exit(1)
packet = ''
- regex = re.compile(r'^\s+0x([0-9a-fA-F]+): ((?: [0-9a-fA-F]{4})+)')
+ regex = re.compile(r'^\s+0x([0-9a-fA-F]+): ((?: [0-9a-fA-F]{2,4})+)')
while True:
line = sys.stdin.readline()
if line == "":