lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6763] Global XID not very unique in dhcp.c


From: Robert Sprowson
Subject: [lwip-devel] [patch #6763] Global XID not very unique in dhcp.c
Date: Tue, 03 Mar 2009 20:58:28 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

URL:
  <http://savannah.nongnu.org/patch/?6763>

                 Summary: Global XID not very unique in dhcp.c
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: sprow
            Submitted on: Tue 03 Mar 2009 20:58:24 GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

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()




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 03 Mar 2009 20:58:24 GMT  Name: patch.txt  Size: 1kB   By: sprow
Unified diff
<http://savannah.nongnu.org/patch/download.php?file_id=17574>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6763>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]