freebsd-skq/lib/libstand
tsoome 378f4212d7 loader: verify the value from dhcp.interface-mtu and use snprintf to set mtu
Since the uset can set dhcp.interface-mtu, we need to try to validate the
value. So we verify if the conversion to int is successful and we will not
allow to set value greater than max IPv4 packet size.

Also use snprintf for safety.

Reviewed by:	allanjude, bapt
Approved by:	allanjude (mentor)
Differential Revision:	https://reviews.freebsd.org/D8492
2017-03-20 22:20:17 +00:00
..
amd64 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
i386 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mips
powerpc Fix loader on PowerPC following r279784. It turns out that, due to .PATH 2015-03-09 02:19:44 +00:00
sparc64 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
__main.c
arp.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
assert.c
bcd.c
bootp.c loader: verify the value from dhcp.interface-mtu and use snprintf to set mtu 2017-03-20 22:20:17 +00:00
bootp.h Try to extract the RFC1048 data from PXE. If we get enough info we can skip 2017-03-09 06:01:24 +00:00
bootparam.c
bootparam.h
bzipfs.c
cd9660.c dosfs support in libstand is broken since r298230 2016-12-30 19:06:29 +00:00
close.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
closeall.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dev.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dosfs.c dosfs support in libstand is broken since r298230 2016-12-30 19:06:29 +00:00
dosfs.h A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
environment.c Fix an inappropriate free of a non-dynamic value. While here, make the 2013-12-18 17:03:43 +00:00
ether.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ext2fs.c prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
fstat.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getopt.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
gets.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
globals.c Netboot: allow both tftpfs and nfs in both pxeboot and loader.efi 2016-08-31 13:16:40 +00:00
gzipfs.c
in_cksum.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inet_ntoa.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ioctl.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
iodesc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
libstand.3 Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n' 2015-01-23 07:30:57 +00:00
lseek.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Restructure libz, place vendor files in contrib/zlib like other third 2017-01-04 09:30:47 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
nandfs.c prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
net.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
net.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
netif.c
netif.h
nfs.c libstand: verify value provided by nfs.read_size 2017-03-20 19:16:28 +00:00
nfsv2.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nullfs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
open.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pager.c
pkgfs.c Add pkgfs, a file system implementation for reading files out of a 2014-07-31 23:25:13 +00:00
printf.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
qdivrem.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
quad.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
random.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rarp.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
read.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
readdir.c
rpc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rpc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rpcv2.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
saioctl.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sbrk.c Set the malloc alignment to 64 bytes on platforms that use the U-Boot API 2014-02-05 22:53:58 +00:00
splitfs.c
stand.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
stat.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
strcasecmp.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
strdup.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
strerror.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
strtol.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
strtoul.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tftp.c Netboot: allow both tftpfs and nfs in both pxeboot and loader.efi 2016-08-31 13:16:40 +00:00
tftp.h
twiddle.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
udp.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ufs.c prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
uuid_from_string.c Fix a bug in the parsing code: always use the len and not 8. 2016-05-20 05:33:26 +00:00
uuid_to_string.c Make tohex() work as expected. 2016-01-09 08:04:29 +00:00
write.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
zalloc_defs.h Set the malloc alignment to 64 bytes on platforms that use the U-Boot API 2014-02-05 22:53:58 +00:00
zalloc_malloc.c
zalloc_mem.h Set the malloc alignment to 64 bytes on platforms that use the U-Boot API 2014-02-05 22:53:58 +00:00
zalloc_protos.h
zalloc.c Set the malloc alignment to 64 bytes on platforms that use the U-Boot API 2014-02-05 22:53:58 +00:00