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)

Submitted by:  Frédéric Bernon <fbernon>
Submitted on:  Sun 11 Mar 2007 08:06:29 PM UTC  
Category:  None Priority:  5 - Normal
Status:  In Progress Privacy:  Public
Assigned to:  Frédéric Bernon <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 :

Frédéric Bernon <fbernon>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project 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>
Project MemberIn charge of this item.


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)

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

    Only logged-in users can vote.




    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.6