[U-Boot] [PATCH v3 00/18] Network stack refactoring

Joe Hershberger joe.hershberger at ni.com
Wed May 23 19:59:06 CEST 2012


This patch-series fixes a number of bugs in the network stack as
well as improve the readability and maintainability of the network
stack by eliminating duplicated code.  These are more substantial
changes than those in the "Network stack cosmetic improvements"
series.

This is dependant on the "Network stack cosmetic improvements"
patch-series.

This is a portion of the changes split from the series:
"Add link-local addressing support"

Joe Hershberger (18):
  net: Refactor IP, UPD, and ICMP header writing functions
  net: Refactor NetSendUDPPacket to share more code
  net: Refactor packet length computations
  net: Refactor bootp packet length computations
  net: Move debug trace to point of action
  net: Refactor ping receive handler
  net: Refactor to use NetSendPacket instead of eth_send directly
  net: Refactor to protect access to the NetState variable
  net: Refactor to separate the UDP handler from the ARP handler
  net: Add net_update_ether() to handle ARP and Ping replies
  net: Don't write the "serverip" env var if configured not to
  net: Fix unused variable compile warning
  net: Add option CONFIG_BOOTP_MAY_FAIL
  net: Remove static allocation for MAC address in PingSend()
  net: Remove unused parameter from NetInitLoop()
  net: Fix net buffer initialization
  net: Make sure NetLoop is initialized when using NetConsole
  net: Don't copy every packet that waits for an ARP

 README                   |    7 ++
 common/cmd_net.c         |    8 +-
 drivers/net/netconsole.c |   16 ++-
 include/net.h            |   44 ++++++---
 net/arp.c                |   48 +++++----
 net/arp.h                |    2 -
 net/bootp.c              |   50 +++++----
 net/cdp.c                |   12 +--
 net/dns.c                |   10 +-
 net/net.c                |  264 +++++++++++++++++++++++++++++-----------------
 net/nfs.c                |   14 ++--
 net/ping.c               |   95 ++++++-----------
 net/rarp.c               |    6 +-
 net/sntp.c               |    6 +-
 net/tftp.c               |   12 +-
 15 files changed, 337 insertions(+), 257 deletions(-)



More information about the U-Boot mailing list