Skip to content

Commit

Permalink
ovs-tcpundump: fix a conversion issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
apconole authored and blp committed Jan 12, 2018
1 parent c34a26d commit 064f846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovs-tcpundump.in
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 064f846

Please sign in to comment.