igmp: bypass MULTICAST_LOOP/TTL options

Signed-off-by: chao.an <anchao@xiaomi.com>
Change-Id: I4c8064283327b04ece2037419e2693e8ae3abaab
This commit is contained in:
chao.an
2020-06-08 15:30:14 +08:00
parent 19ba85c492
commit c64ed0cc03
+9 -5
View File
@@ -183,17 +183,21 @@ int ipv4_setsockopt(FAR struct socket *psock, int option,
}
}
break;
/* The following IPv4 socket options are defined, but not implemented */
case IP_MULTICAST_IF: /* Set local device for a multicast
* socket */
case IP_MULTICAST_TTL: /* Set/read the time-to-live value of
* outgoing multicast packets */
case IP_MULTICAST_LOOP: /* Set/read boolean that determines
* whether sent multicast packets
* should be looped back to local
* sockets. */
{
ret = OK;
}
break;
/* The following IPv4 socket options are defined, but not implemented */
case IP_MULTICAST_IF: /* Set local device for a multicast
* socket */
case IP_UNBLOCK_SOURCE: /* Unblock previously blocked multicast
* source */
case IP_BLOCK_SOURCE: /* Stop receiving multicast data from