summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2018-01-12 15:40:21 -0500
committerBen Pfaff <blp@ovn.org>2018-01-12 13:08:42 -0800
commit446dbf045bb7ad316bc5ab8d706e6b46009de4d9 (patch)
tree010ba65910b9900d22f89b3307905b97d8eca873
parent6b2a8f2ac4921426903d262ec22e182d132cd5e3 (diff)
downloadopenvswitch-446dbf045bb7ad316bc5ab8d706e6b46009de4d9.tar.gz
ovs-tcpundump: fix a conversion issue
When I tried using ovs-tcpundump, I got the following error message: Traceback (most recent call last): File ./ovs-tcpundump, line 64, in <module> if m is None or int(m.group(1)) == 0: ValueError: invalid literal for int() with base 10: '00a0' Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
-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 0268c504a..1e16250aa 100755
--- a/utilities/ovs-tcpundump.in
+++ b/utilities/ovs-tcpundump.in
@@ -61,7 +61,7 @@ if __name__ == "__main__":
break
m = regex.match(line)
- if m is None or int(m.group(1)) == 0:
+ if m is None or int(m.group(1), 16) == 0:
if packet != '':
print packet
packet = ''