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

Joe Hershberger joe.hershberger at ni.com
Wed Mar 28 01:42:50 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"

This is dependant on the "Network stack cosmetic improvements"

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 NetUpdateEther() 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         |    6 +-
 drivers/net/netconsole.c |   14 ++-
 include/net.h            |   38 +++++--
 net/arp.c                |   48 +++++----
 net/arp.h                |    2 -
 net/bootp.c              |   50 +++++----
 net/cdp.c                |   12 +--
 net/dns.c                |   10 +-
 net/net.c                |  263 +++++++++++++++++++++++++++++-----------------
 net/nfs.c                |   10 +-
 net/ping.c               |   95 ++++++-----------
 net/rarp.c               |    6 +-
 net/sntp.c               |    6 +-
 net/tftp.c               |   12 +-
 15 files changed, 325 insertions(+), 254 deletions(-)

More information about the U-Boot mailing list