[riot-notifications] [RIOT-OS/RIOT] I can't use w5100 to work on Release-2020.04 by using RIOT/examples/emcute_mqttsn/. (#14035)

ouyangkan notifications at github.com
Sat May 9 09:14:33 CEST 2020


#### I modified [gnrc_ep_set](https://github.com/RIOT-OS/RIOT/blob/bf9cfb1992857952b182388f39915a49f6c9b7fd/sys/net/gnrc/sock/include/gnrc_sock_internal.h#L94) in [RIOT-2020.04/sys/net/gnrc/sock/include/gnrc_sock_internal.h](sys/net/gnrc/sock/include/gnrc_sock_internal.h) . Make it the same as the previous versions;
```
static inline void gnrc_ep_set(sock_ip_ep_t *out, const sock_ip_ep_t *in,
                               size_t in_size)
{
    memcpy(out, in, in_size);
    // if (gnrc_netif_highlander()) {
        /* set interface implicitly */
        gnrc_netif_t *netif = gnrc_netif_iter(NULL);
        printf("sock_internal: netif = %d\n", out->netif);

        if (netif != NULL) {
            out->netif = netif->pid;
            printf("sock_internal: netif = %d\n", out->netif);

        }
    // }
}
```

#### @MrKevinWeiss    Now it is working working normally. Excuse me, if I want to directly use whether to add some flag to make it pass judgment.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/14035#issuecomment-626120189
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200509/28569a6c/attachment.htm>


More information about the notifications mailing list