summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2018-07-24 18:35:13 +0200
committerBen Pfaff <blp@ovn.org>2018-07-24 16:01:11 -0700
commit793bdb6c050081967160874e0d0bfa6480ba232a (patch)
tree0d36870742fe9c2f4fb7cd1c11b8c2f0170860e5 /configure.ac
parent227abb77d3d1cf0252af6e78b0a2988b94318a02 (diff)
downloadopenvswitch-793bdb6c050081967160874e0d0bfa6480ba232a.tar.gz
ovs-tcpdump: Fix incompatibilities with python3
Opening a file with 'rw' in Python3 returns an error, moreover using 'rw' in Python2 is wrong too since it opens the file using O_RDONLY and not by using O_RDWR. This commit fixes it by using the low-level os.open function with O_RDWR as suggested by the Linux kernel (tuntap.txt) documentation. This commit fixes also some usual bytes vs string incompatibilities. Tested on Python 2.7.15 and Python 3.6.5 Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions