Re: [lwip-users] Lwip with router

2017-02-16 Thread Dirk Ziegelmeier
Did you check this? http://www.nongnu.org/lwip/2_0_0/upgrading.html Especially the netif_set_up() part? Dirk ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] Lwip with router

2017-02-16 Thread Игорь Вильчинский
Hello, I'm using lwip 1.4 with nios. My device connected to router lan port, pc client connected to wan port. On the router set up port forwarding, it works on 1.4 lwip I can get tcp connection. When I upgrade to 2.0.1, lwip recieve packet send answer, but pc do'sent receive answer. Lwipopts and

Re: [lwip-users] lwip_getsockopt_impl() return type

2017-02-16 Thread goldsi...@gmx.de
Joan, the return type is related to the type of struct lwip_sock's 'err' member. reading the comment /** last error that occurred on this socket (in fact, all our errnos fit into an u8_t) */ makes it clear this is just a size improvement which holds for our error definitions but might not

[lwip-users] lwip_getsockopt_impl() return type

2017-02-16 Thread Joan Lledó
Hello, lwip_getsockopt_impl() in api/sockets.c returns u8_t, which is enough for most errno implementations, but some implementations need all 32 bits. Please, take a look at this thread: https://lists.debian.org/debian-hurd/2002/01/msg00022.html I've changed return type to u32_t and have also