patchlwIP - A Lightweight TCP/IP stack - Patches: patch #5798, New DHCP messages for tcpip_thread...

 
 

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

patch #5798: New DHCP messages for tcpip_thread (thread-safe problem)

Submitter:  Frédéric Bernon <fbernon>
Submitted:  Sun 11 Mar 2007 08:06:29 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  In Progress Privacy:  Public
Assigned to:  fbernon Open/Closed:  Closed
Planned Release:  None

Fri 30 Mar 2007 04:34:48 PM UTC, comment #3: 

Closed because same subject is tracked in :

http://savannah.nongnu.org/bugs/?19347



Frédéric Bernon <fbernon>
Group Member
Mon 12 Mar 2007 08:10:11 AM UTC, comment #2: 

Agree for netif*, and good idea about timers...

I start the patch...


Frédéric Bernon <fbernon>
Group Member
Mon 12 Mar 2007 07:35:46 AM UTC, comment #1: 

I agree. Same with netif_*

Also, dhcp_start could start the timer (if not already running), dhcp_stop could stop it (if it was the last interface with dhcp active). That way, (in configureable systems) the timer would not alwys be running.

Simon Goldschmidt <goldsimon>
Group administrator
Sun 11 Mar 2007 08:06:29 PM UTC, original submission:  

I would like to add new messages in tcpip.c api for dhcp_start & dhcp_stop to be thread-safe (with a configuration option like LWIP_DHCP_MSG to reduce footprint).

Because now dhcp_timers are in tcpip_thread, and if we have to be able to change from static to dhcp settings (and reverse) without fully stop/start the stack, these messages MUST be available...

Else, if during a dhcp's timers process per tcpip_thread, the application stop a netif's dhcp client directly with dhcp_stop, we can crash, because the netif's dhcp field will be invalidate, but use per tcpip_thread.

Ok for you?

Frédéric Bernon <fbernon>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by fbernon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-03-30 fbernon Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code