This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-WIFI-CC3120-SDK-PLUGIN: v2.30.00.10 bug

Part Number: SIMPLELINK-WIFI-CC3120-SDK-PLUGIN

Hello TI,

There is a possible bug in software. File net\bsd\netinet\in.h:

/*
 * Copyright (c) 2017-2018, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef ti_net_bsd_netinet_in__include
#define ti_net_bsd_netinet_in__include

#include <ti/net/slnetsock.h>

#ifdef    __cplusplus
extern "C" {
#endif

/* protocols */
#define IPPROTO_IP                          SLNETSOCK_LVL_IP
#define IPPROTO_TCP                         SLNETSOCK_PROTO_TCP
#define IPPROTO_UDP                         SLNETSOCK_PROTO_UDP
#define IPPROTO_RAW                         SLNETSOCK_PROTO_RAW

/* address integers */
#define INADDR_ANY                          SLNETSOCK_INADDR_ANY
#define IN6ADDR_ANY                         SLNETSOCK_IN6ADDR_ANY

#define in_addr                             SlNetSock_InAddr_t
#define sockaddr_in                         SlNetSock_AddrIn_t
#define in6_addr                            SlNetSock_In6Addr_t
#define sockaddr_in6                        SlNetSock_AddrIn6_t

/* address string lengths */
#define INET_ADDRSTRLEN                     SLNETSOCK_INET_ADDRSTRLEN
#define INET6_ADDRSTRLEN                    SLNETSOCK_INET6_ADDRSTRLEN

/* sock options */
#define IP_ADD_MEMBERSHIP                   SLNETSOCK_OPIP_ADD_MEMBERSHIP
#define IP_DROP_MEMBERSHIP                  SLNETSOCK_OPIP_DROP_MEMBERSHIP
#define IP_MULTICAST_TTL                    SLNETSOCK_OPIP_DROP_MEMBERSHIP
#define IPV6_MULTICAST_HOPS                 SLNETSOCK_OPIPV6_MULTICAST_HOPS
#define IPV6_ADD_MEMBERSHIP                 SLNETSOCK_OPIPV6_ADD_MEMBERSHIP
#define IPV6_DROP_MEMBERSHIP                SLNETSOCK_OPIPV6_DROP_MEMBERSHIP

#ifdef  __cplusplus
}
#endif

#endif /* ti_net_bsd_netinet_in__include */

Should be 

/*
 * Copyright (c) 2017-2018, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef ti_net_bsd_netinet_in__include
#define ti_net_bsd_netinet_in__include

#include <ti/net/slnetsock.h>

#ifdef    __cplusplus
extern "C" {
#endif

/* protocols */
#define IPPROTO_IP                          SLNETSOCK_LVL_IP
#define IPPROTO_TCP                         SLNETSOCK_PROTO_TCP
#define IPPROTO_UDP                         SLNETSOCK_PROTO_UDP
#define IPPROTO_RAW                         SLNETSOCK_PROTO_RAW

/* address integers */
#define INADDR_ANY                          SLNETSOCK_INADDR_ANY
#define IN6ADDR_ANY                         SLNETSOCK_IN6ADDR_ANY

#define in_addr                             SlNetSock_InAddr_t
#define sockaddr_in                         SlNetSock_AddrIn_t
#define in6_addr                            SlNetSock_In6Addr_t
#define sockaddr_in6                        SlNetSock_AddrIn6_t

/* address string lengths */
#define INET_ADDRSTRLEN                     SLNETSOCK_INET_ADDRSTRLEN
#define INET6_ADDRSTRLEN                    SLNETSOCK_INET6_ADDRSTRLEN

/* sock options */
#define IP_ADD_MEMBERSHIP                   SLNETSOCK_OPIP_ADD_MEMBERSHIP
#define IP_DROP_MEMBERSHIP                  SLNETSOCK_OPIP_DROP_MEMBERSHIP
#define IP_MULTICAST_TTL                    SLNETSOCK_OPIP_MULTICAST_TTL
#define IPV6_MULTICAST_HOPS                 SLNETSOCK_OPIPV6_MULTICAST_HOPS
#define IPV6_ADD_MEMBERSHIP                 SLNETSOCK_OPIPV6_ADD_MEMBERSHIP
#define IPV6_DROP_MEMBERSHIP                SLNETSOCK_OPIPV6_DROP_MEMBERSHIP

#ifdef  __cplusplus
}
#endif

#endif /* ti_net_bsd_netinet_in__include */

Best regards,

Eugene