buglwIP - A Lightweight TCP/IP stack - Bugs: bug #1897, lwip_sendto forgets previous...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1897: lwip_sendto forgets previous connection information

Submitted by:  Kieran Mansley <kieranm>
Submitted on:  Thu 05 Dec 2002 10:13:34 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Fri 24 Jan 2003 09:27:40 AM UTC, comment #1:

This can trigger in the following case:
connect to a UDP socket so recv is only allowed form a given ip_remote.But sendto to random addresses.the connect in lwip_sendto overwrites ip_remote and does not restore it.So now the socket does only receive form original port combined with
IP which was last sent to .Weird it means it's no longer connected to where it should.made netconn_peer fill in the address not just point to it.Fixed and tested.

Jani Monoses <jani>
Project Member
Thu 05 Dec 2002 10:13:34 AM UTC, original submission:

From http://www.sics.se/mailing-lists/lwip.html/msg01558.html

I notice that the pointer 'addr' JUST points to the 'remote_ip' of pcb after the call of netconn_peer, then the 'remote_ip' field of pcb was rewrited by the call of netconn_connect, so the second call of netconn_connect to reset the 'remote_ip' will be not effect, the previous connection infomation was lost!

Kieran Mansley <kieranm>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 24 Jan 2003 09:27:40 AM UTCjaniOpen/ClosedOpen=>(Error - Not Found)
Fri 24 Jan 2003 09:27:39 AM UTCjaniStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1