diff options
author | ron <lyq140hf2006@163.com> | 2022-01-19 10:35:30 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-03-16 20:43:27 +0100 |
commit | 1c475815a8815134c5d27274e767108d6eca4743 (patch) | |
tree | f9ab5f742c61e07ca60f9ab72535fa77323b7cc1 /pimd/pim_igmpv2.c | |
parent | Merge pull request #10797 from fabioantonini/sysrepo-2.0.41-support (diff) | |
download | frr-1c475815a8815134c5d27274e767108d6eca4743.tar.xz frr-1c475815a8815134c5d27274e767108d6eca4743.zip |
pimd: fix igmp query packet
'Max Resp Time' in v2 query needs no encode (RFC 2236: 2.2.).
Signed-off-by: ron <lyq140hf2006@163.com>
Diffstat (limited to 'pimd/pim_igmpv2.c')
-rw-r--r-- | pimd/pim_igmpv2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_igmpv2.c b/pimd/pim_igmpv2.c index 34cda2596..a949d2b12 100644 --- a/pimd/pim_igmpv2.c +++ b/pimd/pim_igmpv2.c @@ -54,7 +54,8 @@ void igmp_v2_send_query(struct gm_group *group, int fd, const char *ifname, /* max_resp_code must be non-zero else this will look like an IGMP v1 * query */ - max_resp_code = igmp_msg_encode16to8(query_max_response_time_dsec); + /* RFC 2236: 2.2. , v2's is equal to it */ + max_resp_code = query_max_response_time_dsec; assert(max_resp_code > 0); query_buf[0] = PIM_IGMP_MEMBERSHIP_QUERY; |