mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:04:32 +00:00
pimd: Fix 'ip igmp join ..'
When a static igmp join is issued, before routing has come up, the ability to recover was accidently removed from the code. Ticket: CM-13379 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e5009aed2f
commit
a277fb8495
@ -48,7 +48,7 @@ static int igmp_sock_open(struct in_addr ifaddr, ifindex_t ifindex, uint32_t pim
|
|||||||
int join = 0;
|
int join = 0;
|
||||||
struct in_addr group;
|
struct in_addr group;
|
||||||
|
|
||||||
fd = pim_socket_mcast(IPPROTO_IGMP, ifaddr, ifindex, 0 /* loop=false */);
|
fd = pim_socket_mcast(IPPROTO_IGMP, ifaddr, ifindex, 1);
|
||||||
|
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -258,7 +258,7 @@ int pim_interface_config_write(struct vty *vty)
|
|||||||
char group_str[INET_ADDRSTRLEN];
|
char group_str[INET_ADDRSTRLEN];
|
||||||
char source_str[INET_ADDRSTRLEN];
|
char source_str[INET_ADDRSTRLEN];
|
||||||
pim_inet4_dump("<grp?>", ij->group_addr, group_str, sizeof(group_str));
|
pim_inet4_dump("<grp?>", ij->group_addr, group_str, sizeof(group_str));
|
||||||
pim_inet4_dump("<src?>", ij->source_addr, source_str, sizeof(source_str));
|
inet_ntop(AF_INET, &ij->source_addr, source_str, sizeof(source_str));
|
||||||
vty_out(vty, " ip igmp join %s %s%s",
|
vty_out(vty, " ip igmp join %s %s%s",
|
||||||
group_str, source_str,
|
group_str, source_str,
|
||||||
VTY_NEWLINE);
|
VTY_NEWLINE);
|
||||||
|
Loading…
Reference in New Issue
Block a user