freebsd-dev/stand/libsa
Kyle Evans 95c61459f3 libsa: Add MAXWAIT to net for establishing max total timeout
Current timeout behavior is to progress in timeout values from MINTMO to
MAXTMO in MINTMO steps before finally timing out. This results in a fairly
long time before operations finally timeout, which may not be ideal for some
use-cases.

Add MAXWAIT that may be configured along with MINTMO/MAXTMO. If we attempt
to start our send/recv cycle over again but MAXWAIT > 0 and MAXWAIT seconds
have already passed, then go ahead and timeout.

This is intended for those that just want to say "timeout after 180 seconds"
rather than calculate and tweak MINTMO/MAXTMO to get their desired timeout.
The default is 0, or "progress from MINTMO to MAXTMO with no exception."

This has been modified since review to allow for it to be defined via CFLAGS
and doing appropriate error checking. Future work may add some Makefile foo
to respect LOADER_NET_MAXWAIT if it's specified in the environment and pass
it in as MAXWAIT accordingly.

Reviewed by:	imp, sbruno, tsoome (all previous version)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D14389
2018-02-26 18:01:35 +00:00
..
amd64
i386
mips
powerpc
sparc64
__main.c
abort.c Implement abort() as a call to panic. 2018-01-26 17:13:04 +00:00
arp.c libsa: Consolidate tftp sendrecv into net.c sendrecv 2018-02-15 19:49:15 +00:00
assert.c
bcd.c
bootp.c libsa: Consolidate tftp sendrecv into net.c sendrecv 2018-02-15 19:49:15 +00:00
bootp.h dhcp_try_rfc1048() is not used any more 2017-12-06 06:49:53 +00:00
bootparam.c
bootparam.h
bzipfs.c
cd9660.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
close.c
closeall.c
crc32.c
crc32.h
dev.c
dosfs.c
dosfs.h
environment.c getenv does not return tainted data in the boot loader. Attempt to 2018-01-23 18:01:36 +00:00
ether.c
ext2fs.c
fstat.c
getopt.c
gets.c
globals.c
gpt.c Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
gpt.h
gzipfs.c
in_cksum.c
inet_ntoa.c
ioctl.c
iodesc.h
ip.c libsa: Fix IP recv timeout 2018-02-14 15:40:13 +00:00
libsa.3 Move libstand.3 to libsa.3. Update libsa.3 to include functions 2018-01-31 04:29:05 +00:00
lseek.c
Makefile Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
Makefile.depend
nandfs.c
net.c libsa: Add MAXWAIT to net for establishing max total timeout 2018-02-26 18:01:35 +00:00
net.h libsa: Add MAXWAIT to net for establishing max total timeout 2018-02-26 18:01:35 +00:00
netif.c
netif.h
nfs.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
nfsv2.h
nullfs.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
open.c
pager.c
panic.c Split panic routine 2018-01-26 17:13:00 +00:00
pkgfs.c
printf.c
qdivrem.c
quad.h
random.c Fix random() and srandom() prototypes to match the standard. 2017-12-02 00:07:19 +00:00
rarp.c libsa: Consolidate tftp sendrecv into net.c sendrecv 2018-02-15 19:49:15 +00:00
read.c
readdir.c
rpc.c libsa: Consolidate tftp sendrecv into net.c sendrecv 2018-02-15 19:49:15 +00:00
rpc.h
rpcv2.h
saioctl.h
sbrk.c Panic in sbrk if setheap hasn't been called yet. This is preferable to 2017-12-15 23:16:47 +00:00
splitfs.c
stand.h liblua: Implement write support 2018-02-24 02:57:24 +00:00
stat.c
strcasecmp.c
strdup.c
strerror.c
tftp.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
tftp.h
twiddle.c
udp.c
ufs.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
ufsread.c
uuid_from_string.c
uuid_to_string.c
write.c libsa: Const-ify buffer argument of write(2) analog 2018-02-23 20:18:09 +00:00
xlocale_private.h Kill copies of strtol and strtoul. Use the ones that are in libc, 2018-01-31 04:29:00 +00:00
zalloc_defs.h
zalloc_malloc.c
zalloc_mem.h
zalloc_protos.h
zalloc.c