packet/igmp: Python 3: truncate IGMP timer fields to integers before packing
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 <fb07b55965b0bcf67d7c8fa672b9fc63fc467bd8@gmail.com>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

John-Lin/ryu,TakeshiTseng/ryu,Tejas-Subramanya/RYU_MEC,takahashiminoru/ryu,lagopus/ryu-lagopus-ext,Tejas-Subramanya/RYU_MEC,darjus-amzn/ryu,gareging/SDN_Framework,Zouyiran/ryu,alanquillin/ryu,habibiefaried/ryu,lagopus/ryu-lagopus-ext,Zouyiran/ryu,alanquillin/ryu,osrg/ryu,Tejas-Subramanya/RYU_MEC,fkakuma/ryu,lagopus/ryu-lagopus-ext,fujita/ryu,osrg/ryu,zyq001/ryu,TakeshiTseng/ryu,zyq001/ryu,StephenKing/ryu,StephenKing/ryu,pichuang/ryu,fujita/ryu,TakeshiTseng/ryu,OpenState-SDN/ryu,fkakuma/ryu,fkakuma/ryu,lagopus/ryu-lagopus-ext,TakeshiTseng/ryu,John-Lin/ryu,darjus-amzn/ryu,John-Lin/ryu,zangree/ryu,iwaseyusuke/ryu,gareging/SDN_Framework,zyq001/ryu,darjus-amzn/ryu,shinpeimuraoka/ryu,fujita/ryu,gareging/SDN_Framework,OpenState-SDN/ryu,Tejas-Subramanya/RYU_MEC,fkakuma/ryu,zangree/ryu,takahashiminoru/ryu,fkakuma/ryu,zangree/ryu,ttsubo/ryu,OpenState-SDN/ryu,shinpeimuraoka/ryu,hisaharu/ryu,Zouyiran/ryu,StephenKing/ryu,iwaseyusuke/ryu,hisaharu/ryu,OpenState-SDN/ryu,ttsubo/ryu,habibiefaried/ryu,ttsubo/ryu,Zouyiran/ryu,takahashiminoru/ryu,habibiefaried/ryu,takahashiminoru/ryu,pichuang/ryu,shinpeimuraoka/ryu,alanquillin/ryu,hisaharu/ryu,habibiefaried/ryu,osrg/ryu,StephenKing/ryu,John-Lin/ryu,zangree/ryu,takahashiminoru/ryu,iwaseyusuke/ryu,ttsubo/ryu,lagopus/ryu-lagopus-ext,John-Lin/ryu,Tejas-Subramanya/RYU_MEC,pichuang/ryu,osrg/ryu,shinpeimuraoka/ryu,iwaseyusuke/ryu,ttsubo/ryu,pichuang/ryu,osrg/ryu,habibiefaried/ryu,shinpeimuraoka/ryu,TakeshiTseng/ryu,pichuang/ryu,zyq001/ryu,hisaharu/ryu,alanquillin/ryu,iwaseyusuke/ryu,OpenState-SDN/ryu,alanquillin/ryu,fujita/ryu,gareging/SDN_Framework,darjus-amzn/ryu,StephenKing/ryu,Zouyiran/ryu,zyq001/ryu,fujita/ryu,hisaharu/ryu,gareging/SDN_Framework,darjus-amzn/ryu,zangree/ryu