XinStellaris opened a new pull request, #1307:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1307

   Signed-off-by: 田昕 <tianx...@xiaomi.com>
   
   ## Summary
   In this patch, dhcp will try to get a random xid. If that fails, dhcp will 
use the default xid.
   
   The reason to do so is from RFC2131:
     "The 'xid' field is used by the client to match incoming DHCP messages
      with pending requests.  A DHCP client MUST choose 'xid's in such a
      way as to minimize the chance of using an 'xid' identical to one used
      by another client. For example, a client may choose a different,
      random initial 'xid' each time the client is rebooted, and
      subsequently use sequential 'xid's until the next reboot.  Selecting
      a new 'xid' for each retransmission is an implementation decision.  A
      client may choose to reuse the same 'xid' or select a new 'xid' for
      each retransmitted message."
   ## Impact
      DHCP
   ## Testing
     BL602 tested
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to