Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Karl Karpfen
2015-01-29 7:46 GMT+01:00 Simon Goldschmidt : > Karl Karpfen wrote: > > - I have rewritten the example a bit to get rid of the sys_xxx() > functions which are not available for me > > I'm not sure I understand. You don't have sys_timeout/sys_untimeout? > That's correct, LWIP_TIMERS is not configu

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Simon Goldschmidt
Karl Karpfen wrote: > At least for the IP it definitely is necessary. When I hand over a > non-ntohl()'ed IP-address to LWIP_IF.ipAddr (used with lwIPInit()), > my network interface comes up with wrong IP. Of course it's necessary for ip addresses to be in network byte order. However, you were t

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Karl Karpfen
2015-01-29 14:35 GMT+01:00 Simon Goldschmidt : > Karl Karpfen wrote: > > At least for the IP it definitely is necessary. When I hand over a > > non-ntohl()'ed IP-address to LWIP_IF.ipAddr (used with lwIPInit()), > > my network interface comes up with wrong IP. > > > Of course it's necessary for ip

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Simon Goldschmidt
Karl Karpfen wrote: > No but there I have to specify the IP of the NTP-server to communcate with > My assumption: when I have to ntohl() the netif-IP, I have to do that for > the NTP-IP and the port-number too. Is this wrong? Yes. Do you have evidence that there is an endianness problem here? Hav

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Sylvain Rochet
Hi Karl, On Thu, Jan 29, 2015 at 05:57:50PM +0100, Karl Karpfen wrote: > 2015-01-29 15:56 GMT+01:00 Simon Goldschmidt : > > > Karl Karpfen wrote: > > > No but there I have to specify the IP of the NTP-server to communcate > > with > > > My assumption: when I have to ntohl() the netif-IP, I have t

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread Karl Karpfen
2015-01-29 15:56 GMT+01:00 Simon Goldschmidt : > Karl Karpfen wrote: > > No but there I have to specify the IP of the NTP-server to communcate > with > > My assumption: when I have to ntohl() the netif-IP, I have to do that for > > the NTP-IP and the port-number too. Is this wrong? > > Yes. > > Do

Re: [lwip-users] PPPOE Server

2015-01-29 Thread Thomas Ubensee
Hi Sylvain, thank you very much for the info. Thomas 2015-01-28 18:07 GMT-02:00 Sylvain Rochet : > Hello Thomas, > > On Mon, Jan 26, 2015 at 11:30:07AM -0200, Thomas Ubensee wrote: > > Hi, > > > > In lwIP code I saw a preprocessor variable PPPOE_SERVER. Currently > enabling > > this variable le

Re: [lwip-users] SNTP client does not work

2015-01-29 Thread goldsi...@gmx.de
Karl Karpfen wrote: BTW: ipaddr_aton already returns network byte order and udp_sendto() takes a host byte order port. Please first check your code before assuming bugs in other people's code ;-) Sorry but I did nowhere and never blamed somebody for bugs, I just asked a question r

[lwip-users] Virtual machines in the same host (bridge).

2015-01-29 Thread Norberto R. de Goes Jr.
Hi All. I have the following environment: - host Windows-7 Professional, 64 bits, with two virtual machines (Virtual Box), both with Fedora-17 Distro, 32 bits; - the VM´s network configured as "Internal Network" I wrote a small "lwip application" based on unix port (community). It runs in VM #1

Re: [lwip-users] Virtual machines in the same host (bridge).

2015-01-29 Thread Sylvain Rochet
Hello Norberto, On Thu, Jan 29, 2015 at 04:42:06PM -0200, Norberto R. de Goes Jr. wrote: > Hi All. > > I have the following environment: > > - host Windows-7 Professional, 64 bits, with two virtual machines (Virtual > Box), both with Fedora-17 Distro, 32 bits; > - the VM´s network configured as