[SLOF] [PATCH 0/7] Netboot / DHCP improvements

Thomas Huth thuth at redhat.com
Fri Dec 18 07:18:49 AEDT 2015


This patch series enhances the netboot and DHCP code in net-snk.
The first patch improves the printed text a little bit.
The next patches introduce transaction ID handling in the DHCPv4
and DHCPv6 code. For this, I had to fix the rand() function in
SLOF's libc first and implement srand() to be able to seed it.
And the last patch fixes a problem with sent DHCPv6 packets - they
contained trailing garbage bytes.

Thomas Huth (7):
  net-snk: Improve printed text when booting via network
  libc: Fix the rand() function to return non-zero values
  libc: Add srand() call
  net-snk: Seed the pseudo-random number generator
  net-snk: Make use of DHCPv6 transaction IDs
  net-snk: Use transaction IDs in DHCPv4, too
  net-snk: Get rid of junk at the end of sent DHCPv6 packets

 clients/net-snk/app/netapps/netboot.c | 32 +++++++++++++++++++++++++++-----
 clients/net-snk/app/netlib/dhcp.c     | 17 +++++++++++++++--
 clients/net-snk/app/netlib/dhcp.h     |  1 +
 clients/net-snk/app/netlib/dhcpv6.c   | 25 ++++++++++++-------------
 clients/net-snk/app/netlib/dhcpv6.h   |  5 ++++-
 lib/libc/include/stdlib.h             |  1 +
 lib/libc/stdlib/rand.c                |  9 +++++++--
 7 files changed, 67 insertions(+), 23 deletions(-)

-- 
1.8.3.1



More information about the SLOF mailing list