Fix IPv6 standby controller boot loop

IPv6 multicast should be sent to the interface that the socket
binds to.

Closes-Bug: 1842949
Change-Id: I14b6c5193c67a0ddd69e31d1044219c4e9fd6b94
Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
Bin Qian 2019-09-05 13:33:52 -04:00
parent e9fa094a82
commit 7f52df37bd
2 changed files with 1 additions and 13 deletions

View File

@ -2,4 +2,4 @@ SRC_DIR=$PKG_BASE
COPY_LIST="$PKG_BASE/LICENSE"
TAR_NAME=sm
VERSION=1.0.0
TIS_PATCH_VER=30
TIS_PATCH_VER=33

View File

@ -2691,18 +2691,6 @@ static SmErrorT sm_msg_open_ipv6_udp_multicast_socket(
return( SM_FAILED );
}
// Set multicast interface on socket.
result = setsockopt( sock, IPPROTO_IPV6, IPV6_MULTICAST_IF,
&(interface->id), sizeof(interface->id) );
if( 0 > result )
{
DPRINTFE( "Failed to set unicast address on socket for "
"interface (%s), error=%s.", interface->interface_name,
strerror( errno ) );
close( sock );
return( SM_FAILED );
}
// Bind socket to interface.
memset( &ifr, 0, sizeof(ifr) );
snprintf( ifr.ifr_name, sizeof(ifr.ifr_name), "%s",