patchlwIP - A Lightweight TCP/IP stack - Patches: patch #6763, Global XID not very unique in...

 
 

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

patch #6763: Global XID not very unique in dhcp.c

Submitter:  Robert Sprowson <sprow>
Submitted:  Tue 03 Mar 2009 08:58:24 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Wed 15 Apr 2009 06:48:25 PM UTC, comment #1: 

I like that. Checked in. Thanks.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 03 Mar 2009 08:58:24 PM UTC, original submission:  

The global XID of 0xABCD0000 is potentially problematic if more than one lwip based device starts a DHCP request at the same time (for example they're both turned on after a power cut).

This patch adds two overridable defines for addition to lwipopts.h as desired

 DHCP_GLOBAL_XID
 Define this to override the default of 0xABCD0000, this could be
 a simple number or a function call.

 DHCP_GLOBAL_XID_HEADER
 Define this to include a header file if required.

A simple example of use would be
 #define DHCP_GLOBAL_XID_HEADER stdlib.h
 #define DHCP_GLOBAL_XID rand()

Robert Sprowson <sprow>

 

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

Attached Files
file #17574:  patch.txt added by sprow (1KiB - text/plain - Unified diff)

 

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 sprow (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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-15 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2009-03-03 sprow Attached File- Added patch.txt, #17574

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code