[lwip-users] compilation error

2015-03-24 Thread Wendel Assis
Hi all,

does anyone have the following error when compiling the lwip with the
simhost contrib example for unix?

/usr/include/netinet/in.h:365:78: error: declaration of ‘uint32_t
lwip_ntohl(uint32_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:108:7:
error: from previous declaration ‘u32_t lwip_ntohl(u32_t)’
/usr/include/netinet/in.h:367:40: error: declaration of ‘uint16_t
lwip_ntohs(uint16_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:106:7:
error: from previous declaration ‘u16_t lwip_ntohs(u16_t)’
/usr/include/netinet/in.h:369:40: error: declaration of ‘uint32_t
lwip_htonl(uint32_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:107:7:
error: from previous declaration ‘u32_t lwip_htonl(u32_t)’
/usr/include/netinet/in.h:371:40: error: declaration of ‘uint16_t
lwip_htons(uint16_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:105:7:
error: from previous declaration ‘u16_t lwip_htons(u16_t)’


Best Regards,
Wendel
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] error when starting an app that tries to open a socket over a running lwIP instance

2015-01-13 Thread Wendel Assis
Hi all,

I´m trying to build a setup like this:

1) c project that is based on the lib project in the contrib distribution
to generate the lwip as a library
2) c project that links to the library created in (1) and just adds a
network interface, using the tap interface as done in the unix
contrib distribution.
3) c project that is based on the chargen example in the contrib
distribution.

I´ve compiled all projects. After that, run my (2) project and the lwip
gets initialized. Next, run (3) and expect the app to be able to open a
socket. However, it fails to open returning null at netconn_alloc.

If I do (2) and (3) as a single project (starting the chargen example right
after adding the netif in the code) everything works fine.

Please, could someone help me on what am I missing on this setup? I´m
running the projects over linux.

Best Regards,
Wendel
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] RIP and OSPF support

2014-09-03 Thread Wendel Assis
Hi Sergio,

   thanks for the reply, you are probably talking about the LWIP_HOOK_IP4_ROUTE
and this sounds like a yes to my first question! We do have to implement
our own stack per a customer requirement (even though it will be running on
top of a Linux OS, they have their reasons for that, but running a stack in
user space is something really odd). Nevertheless, your point about
resource usage for the routing algorithms is something I will bring up to
their attention, thanks a lot!

Best Regards,
Wendel


2014-09-03 15:46 GMT-03:00 Sergio R. Caprile scapr...@gmail.com:

 There is a thread on a guy needing something like source routing last
 month, in which Simon discussed some hooks to provide routing.
 As far as I can see, you are better off using embedded Linux. Even
 though nothing forbids you from runnig RIP or OSPF on top of lwIP and
 build a routing table and routing hooks, my (probably educated) guess is
 that the amount of resources you'll need to run the Dijkstra algorithm
 in OSPF (which depends on the size of the visible network) will probably
 justify the usage of something closer to a full-blown OS.


 ___
 lwip-users mailing list
 lwip-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] question about using master/head instead of 1.4.1

2014-09-01 Thread Wendel Assis
Hi all,

   I´ve started working with lwIP some weeks ago and one thing that called
my attention was that the latest stable version is two years old and that
we have almost 200 commits since them. I know this seems an odd question,
but what the community suggests? pick the stable or the master version for
a new integration? I could see that many commits were related to ipv6 and
ppp, but I'm not sure if critical bugs were fixed in between.

Best Regards,
Wendel
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] question about using master/head instead of 1.4.1

2014-09-01 Thread Wendel Assis
Hi Simon,

   thanks for the reply!! Please, could you share what could we expect in
terms of new features for 1.5.0? As I mentioned before, I saw a lot of
commits related to ipv6 and ppp, but I'm not sure what are the new features
as in 1.4.1 they seem to be available as well (or at least some part of
them). This kind of information is usefull to help on the decision to go or
not go with the master!

Best Regards,
Wendel


2014-09-01 15:38 GMT-03:00 goldsi...@gmx.de goldsi...@gmx.de:

 Wendel Assis wrote:

 I´ve started working with lwIP some weeks ago and one thing that called
 my attention was that the latest stable version is two years old and that
 we have almost 200 commits since them. I know this seems an odd question,
 but what the community suggests? pick the stable or the master version for
 a new integration? I could see that many commits were related to ipv6 and
 ppp, but I'm not sure if critical bugs were fixed in between.


 That's not at all an odd question. The current git master should be
 'pretty stable' and should be the code to use when starting new projects.
 However, you should expect it to get fixed here and there in the next
 months, so if you need maximum stability right now, 1.4.1 is still the one
 to use.

 I'm planning to release a beta for 1.5.0 in the next weeks. This will be
 based on current git master.


 Simon

 ___
 lwip-users mailing list
 lwip-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] question about using master/head instead of 1.4.1

2014-09-01 Thread Wendel Assis
Hi Simon, thanks for the help!


2014-09-01 16:41 GMT-03:00 goldsi...@gmx.de goldsi...@gmx.de:

 Wendel Assis wrote:

 Please, could you share what could we expect in terms of new features for
 1.5.0?


 Have a look at http://git.savannah.gnu.org/cgit/lwip.git/tree/CHANGELOG ,
 I've just updated it to show the differences between 1.4.1 and git master.
 This got messed up because 1.4.1 and the future 1.5.0 tree got developed in
 parallel starting from 1.4.0, so 1.4.1 never really was part of the current
 1.5.0 tree.

 Summing it up, aside from IPv6, a major change to the PPP code and support
 for TCP windows scaling, there's not much new in it. There are however many
 bugs fixed, which is why I strongly encourage to use that tree instead of
 1.4.1. There will not be any (official) bug fix releases for the 1.4.x tree!


  As I mentioned before, I saw a lot of commits related to ipv6 and ppp,
 but I'm not sure what are the new features as in 1.4.1 they seem to be
 available as well (or at least some part of them).


 Even though there were some IPv6 files before, IPv6 was *not* really
 usable until re-developed by Ivan. To sum it up, 1.5.0 will be the first
 version of lwIP to really support IPv6.
 The PPP code has gone through a major rework by Sylvain. I'm not at all
 too familiar with PPP, but as the old code wasn't really maintained, and
 Sylvain is excellent in solving things that don't yet work with the updated
 PPP code, using the old PPP code now doesn't seem like a good idea... :-)



 Simon

 ___
 lwip-users mailing list
 lwip-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users