summaryrefslogtreecommitdiffhomepage
path: root/doc/source/app/ofctl.rst
diff options
context:
space:
mode:
authorFadi Moukayed <smfadi@gmail.com>2015-08-28 12:55:56 +0200
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-30 14:17:30 +0900
commit9bca06c31c675f1064a45bb4ead16f73424fbaa7 (patch)
tree8c8a0bcbc4052e4459ff6fda0bba2097e69d66f1 /doc/source/app/ofctl.rst
parent7028704b3f72e394d353a3ca7e05665649db67d7 (diff)
packet/igmp: Python 3: truncate IGMP timer fields to integers before packing
This patch adds explicit integer conversions to the IGMP timer fields. This is necessary because Python 3's pack(...) does not automatically coerce floating-point values to integers (Python 3 actually throws a struct.error on struct.pack('B', 1.0)). This fixes IgmpQuerier._send_query and IgmpSnooper._do_query under Python 3, and possibly other functions that pass/assign floats to the `maxresp' attribute. Signed-off-by: Fadi Moukayed <smfadi@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source/app/ofctl.rst')
0 files changed, 0 insertions, 0 deletions