diff --git a/net/inet/ipv4_setsockopt.c b/net/inet/ipv4_setsockopt.c index e1e21eb7ac7..5dc1f8b5022 100644 --- a/net/inet/ipv4_setsockopt.c +++ b/net/inet/ipv4_setsockopt.c @@ -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