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:19 -0800
commit9d8b4b6b016801ec9cba3e9433740c56f8f4818e (patch)
treebd4043f258d7951e57b3c0071690406667e345d5
parentf5ace2dc78e99ae50c77442f91f53f694418fc43 (diff)
downloadopenvswitch-9d8b4b6b016801ec9cba3e9433740c56f8f4818e.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 57300cdc1..c99015b5b 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 = ''