freebsd-skq/lib/libstand
ian 8d32f22531 MFC r292583:
Allow dhcp/bootp server-provided values to be overriden from environment
  variables in loader(8) and other libstand applications.

  Sometimes a dhcp server provides incorrect information along with the IP
  address. It would be useful to have a way to override this with
  locally-supplied information, such as command line parameters passed from a
  prior-stage bootloader. This change allows pre-existing env vars to take
  precedence over values delivered by the dhcp or bootp server.

  The bootp/dhcp code in libstand automatically creates environment variables
  from the data provided by the server (dhcp.root-path, dhcp.domain-name,
  etc). It also transcribes the values to some global variables such as
  'rootpath' and 'hostname'.

  This change does two things:

      When adding dhcp.* vars to the environment, don't replace existing
      vars/values.

      When setting the global vars rootpath and hostname, use the
      dhcp.root-path and dhcp.host-name env var values if they exist.

  This allows the platform-specific part of loader(8) to obtain override
  values in some platform-specific way and store them in the environment
  before opening the network device. The set of values that can be overriden
  is currently limited to just string options. The values that are delivered
  as binary data are things that probably shouldn't be overridden (IP,
  netmask, gateway, etc).

  The original patch this evolved from was submitted by martymac@

PR:           202098
Relnotes:	Yes
2016-01-19 21:35:09 +00:00
..
amd64 Move the 64-bit _setjmp to lib/libstand. 2012-12-21 15:15:35 +00:00
i386
mips Merge @228176 from Perforce to fix a bug introduced in r249553: 2013-04-28 14:40:29 +00:00
powerpc MFC r261591 (nwhitehorn): 2014-09-04 20:21:30 +00:00
sparc64
__main.c
arp.c
assert.c
bcd.c
bootp.c MFC r292583: 2016-01-19 21:35:09 +00:00
bootp.h
bootparam.c
bootparam.h
bswap.c Consitently use "__LP64__". 2012-05-24 21:44:46 +00:00
bzipfs.c
cd9660.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
close.c
closeall.c
dev.c
dosfs.c MFC 279931: 2015-04-09 18:45:03 +00:00
dosfs.h
environment.c
ether.c
ext2fs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
fstat.c
getopt.c
gets.c
globals.c
gzipfs.c
in_cksum.c
inet_ntoa.c
ioctl.c
iodesc.h
libstand.3
lseek.c
Makefile MFC r292234, r292527: 2016-01-19 21:27:25 +00:00
nandfs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
net.c In sendrecv function, change the receive timeout value between retries 2011-06-15 21:58:01 +00:00
net.h
netif.c
netif.h
nfs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
nfsv2.h
nullfs.c
open.c
pager.c
printf.c MFC r266878, r266879: Add support for snprintf() to libstand. 2014-10-26 02:51:56 +00:00
qdivrem.c MFC r269077 (sbruno): libstand qdivrem warning fixes 2014-09-04 20:49:11 +00:00
quad.h MFC r269077 (sbruno): libstand qdivrem warning fixes 2014-09-04 20:49:11 +00:00
random.c
rarp.c
read.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
readdir.c
rpc.c
rpc.h
rpcv2.h
saioctl.h
sbrk.c MFC r261530 2014-07-25 23:12:22 +00:00
splitfs.c
stand.h MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
stat.c
strcasecmp.c
strdup.c
strerror.c
strtol.c
strtoul.c Fix includes for use in libstand. 2013-02-19 17:09:23 +00:00
tftp.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
tftp.h
twiddle.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
udp.c Add #include <netinet/in_pcb.h> for missing forward declation of 2011-05-03 07:39:54 +00:00
ufs.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
write.c MFC r276079, r276087: 2015-02-11 22:55:24 +00:00
zalloc_defs.h MFC r261530 2014-07-25 23:12:22 +00:00
zalloc_malloc.c - Removing some unneeded definitions of NULL(cruft related to 1970's C). 2011-07-10 07:25:34 +00:00
zalloc_mem.h MFC r261530 2014-07-25 23:12:22 +00:00
zalloc_protos.h - Removing some unneeded definitions of NULL(cruft related to 1970's C). 2011-07-10 07:25:34 +00:00
zalloc.c MFC r261530 2014-07-25 23:12:22 +00:00