|
From: | Jonathan Larmour |
Subject: | Re: [lwip-users] ICMP port unreachable when using netconn UDP |
Date: | Mon, 18 Feb 2008 12:18:29 +0000 |
User-agent: | Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515) |
Ben Bobbitt wrote:
All I have done is to make the UDP related changes to the lwipopts.h file, and then in the module that was previously a webserver example:pxHTTPListener = netconn_new( NETCONN_UDP ); addr.addr = htonl(0xc0a80002); // my local ip 192.168.0.2 netconn_bind(pxHTTPListener, &addr, webHttpPort ); addr.addr = htonl(0xc0a80065); // ip of the remote system netconn_connect(pxHTTPListener,&addr,webHttpPort);
You shouldn't need to do a connect if you receive. But if you do it should precisely match the remote end's IP/port. I doubt that your remote system 192.168.0.65 is sending _from_ webHttpPort, and is probably using a random high port number.
So just don't do the connect. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["The best things in life aren't things."]------ Opinions==mine
[Prev in Thread] | Current Thread | [Next in Thread] |