]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r297147, r297148, r297149, r297150, r297151:
authorian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 31 May 2016 17:01:54 +0000 (17:01 +0000)
committerian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 31 May 2016 17:01:54 +0000 (17:01 +0000)
commitbdeb55648d428ccaee42de31532e2080c412351b
tree55b1461d18254ede25580beb261018a4ca9f09af
parenteb9e6f9cf86de1141da7651844d1ad38cacf96ca
MFC r297147, r297148, r297149, r297150, r297151:

  Make both the loader and kernel use the interface-mtu option if the
  dhcp server provides it.  Made up of these (semi-)related changes...

  [kernel...] If the dhcp server provides an interface-mtu option, parse
  the value and set that mtu on the interface.

  [libstand...]

  Garbage collect the bswap routines from libstand, use sys/endian.h.

  If the dhcp server delivers an interface-mtu option, parse it and store
  the value in a new global intf_mtu for use by the application.

  [loader...]

  If the dhcp server provided an interface-mtu option, transcribe the value
  to the boot.netif.mtu env var, which will be picked up by pre-existing code
  in nfs_mountroot() and used to configure the interface accordingly.

PR: 187094

git-svn-id: svn://svn.freebsd.org/base/stable/10@301056 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
12 files changed:
lib/libstand/Makefile
lib/libstand/bootp.c
lib/libstand/bootp.h
lib/libstand/bswap.c [deleted file]
lib/libstand/globals.c
lib/libstand/net.h
lib/libstand/stand.h
sys/boot/common/dev_net.c
sys/boot/i386/libi386/pxe.c
sys/boot/libstand32/Makefile
sys/boot/userboot/libstand/Makefile
sys/nfs/bootp_subr.c