igmplib: Fix a problem that querier stops sending a query message

When QUERY timeout expires, a variable for flooding is overwritten unexpectedly.
So querier stops sending a query message any longer.
This patch fixes the problem.

Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yuichi Ito 2014-04-07 09:31:11 +09:00 committed by FUJITA Tomonori
parent 792c75c6a1
commit f00952b0af

View File

@ -353,7 +353,7 @@ class IgmpQuerier(IgmpBase):
res_pkt.add_protocol(res_igmp)
res_pkt.serialize()
actions = [parser.OFPActionOutput(ofproto.OFPP_FLOOD)]
flood = [parser.OFPActionOutput(ofproto.OFPP_FLOOD)]
while True:
# reset reply status.
@ -363,7 +363,7 @@ class IgmpQuerier(IgmpBase):
# send a general query to the host that sent this message.
self._do_packet_out(
self._datapath, res_pkt.data, send_port, actions)
self._datapath, res_pkt.data, send_port, flood)
hub.sleep(igmp.QUERY_RESPONSE_INTERVAL)
# QUERY timeout expired.