1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/sbin
Brooks Davis ebe609b4a2 It is possible for bpf to return a length such that:
length != BPF_WORDALIGN(length)

This meeans that it is possible for this to be true:

	interface->rbuf_offset > interface->rbuf_len

Handle this case in the test for running out of packets.  While
OpenBSD's solution of setting interface->rbuf_len to
BPF_WORDALIGN(length) is safe due to the size of the buffer, I think
this solution results in less hidden assumptions.

This should fix the problem of dhclient running away and consuming 100%
CPU.

PR:		bin/102226
Submitted by:	Joost Bekkers <joost at jodocus.org>
MFC after:	3 days
2006-09-26 01:02:02 +00:00
..
adjkerntz Correct various mistakes in the last commit. 2006-05-13 11:58:58 +00:00
atacontrol Add new modes. 2006-03-15 19:32:43 +00:00
atm Use the C99 syntax for designated initialisers. 2005-08-05 07:33:50 +00:00
badsect
bsdlabel Markup fixes. 2006-09-18 11:55:10 +00:00
camcontrol Markup fixes. 2006-09-18 11:55:10 +00:00
ccdconfig Fix markup and some typos. 2006-04-14 09:20:25 +00:00
clri Give variable an initial value. Use errx() instead of fprintf(). 2005-05-29 16:07:10 +00:00
comcontrol
conscontrol
devd Add -f option to program's usage(), fix manpage's SYNOPSIS. 2006-09-17 22:49:26 +00:00
devfs o Revert a previous delta as strlcpy(3) operates with NUL-terminated 2006-06-14 15:09:52 +00:00
dhclient It is possible for bpf to return a length such that: 2006-09-26 01:02:02 +00:00
dmesg Avoid moving onto a new line while testing if there is a syslog priority 2006-02-27 19:13:47 +00:00
dump Markup fixes. 2006-09-18 11:55:10 +00:00
dumpfs
dumpon With minidumps, the dumping partition could be smaller than physical 2006-04-27 19:01:54 +00:00
fdisk - Fail with an understandable error message if we cannot detect the 2006-06-18 22:02:22 +00:00
fdisk_pc98 Markup fixes. 2006-09-18 11:55:10 +00:00
ffsinfo o Fix typo. 2006-06-11 15:53:36 +00:00
fsck
fsck_ffs Mention the default location of alternative super block on a 2005-09-20 08:02:38 +00:00
fsck_msdosfs
fsdb Markup fixes. 2006-09-18 11:55:10 +00:00
fsirand
gbde Markup fixes. 2006-09-18 11:55:10 +00:00
geom Markup fixes. 2006-09-18 11:55:10 +00:00
ggate Markup fixes. 2006-09-18 11:55:10 +00:00
gpt Fix cut-n-paste bug: compare argument s against known aliases, 2006-07-07 02:44:23 +00:00
growfs Remove duplicated assignment. 2006-07-17 20:48:36 +00:00
gvinum Implement the 'resetconfig' command. 2006-03-23 19:58:43 +00:00
idmapd Remove dead code. 2005-04-14 20:27:30 +00:00
ifconfig Fix a typo in af_inet6.c such that IPv6 addresses may be deleted 2006-09-25 18:20:56 +00:00
init Reparent the process that executes the window= command from the ttys 2006-06-08 14:04:36 +00:00
ipf Fix the manual build. 2006-09-10 08:58:47 +00:00
ipfw Markup fixes. 2006-09-18 11:55:10 +00:00
kldconfig Fix malloc size (visible on amd64, with "kldconfig -r"). 2005-11-07 19:22:20 +00:00
kldload -mdoc sweep. 2005-11-18 10:36:29 +00:00
kldstat -mdoc sweep. 2005-11-18 10:36:29 +00:00
kldunload Bump a date in .Dd field. Last change brought some new functionality. 2006-02-27 22:48:58 +00:00
ldconfig Tweak -32 description and add -32 FILES. 2005-12-09 03:12:25 +00:00
mca s/Februari/February/. 2006-02-12 07:57:27 +00:00
md5 Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
mdconfig Make WITHOUT_DYNAMICROOT=foo work again: remember to reference 2006-04-01 16:34:45 +00:00
mdmfs Markup fixes. 2006-09-18 11:55:10 +00:00
mknod
mksnap_ffs
mount Markup fixes. 2006-09-18 11:55:10 +00:00
mount_autofs
mount_cd9660 Fixing multi-session disc mount by passing the correct "ssector" option 2005-12-19 05:52:37 +00:00
mount_ext2fs Garbage collect useless variables. 2005-08-05 07:39:39 +00:00
mount_hpfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_msdosfs mount_msdosfs.c: 2006-06-01 02:25:00 +00:00
mount_nfs Minor style(9) and KNF elimination as I prepare to fix a bug. 2006-03-20 21:28:46 +00:00
mount_nfs4 Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_ntfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_nullfs Add a missing .Pp call. 2006-04-19 19:21:42 +00:00
mount_reiserfs Increase WARNS level to 6. 2005-11-13 01:47:04 +00:00
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_umapfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_unionfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
natd WARNS=6 and gcc4 cleanup: 2005-05-02 10:13:38 +00:00
newfs Don't treat failure to find the operator GID as a fatal error; this 2005-08-14 17:07:04 +00:00
newfs_msdos
nfsiod When accessing the sysctl vfs.nfs.iodmax, don't report errors as being 2005-04-07 20:37:04 +00:00
nos-tun
pfctl Add missing library dependencies. 2006-04-13 12:49:24 +00:00
pflogd
ping Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
ping6 These IPv6-only tools have no explicit dependency on the INET6 macro. 2006-07-27 15:31:13 +00:00
quotacheck
rcorder do_file() is called recursively from several places and cannot 2006-05-20 05:47:18 +00:00
reboot Block a variety of signals which may afffect reboot(8), before killing 2006-08-02 13:05:38 +00:00
recoverdisk Make recoverdisk compile on amd64 and possibly other 64bit archs. 2006-05-30 19:10:18 +00:00
restore o Fix style(9) for previous. 2006-08-25 09:14:23 +00:00
route Obey MK_INET6_SUPPORT. 2006-07-27 13:26:29 +00:00
routed o Remove rev. 1.14 debug printf(3) leftovers. 2005-12-20 18:18:37 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore o Restore kerneldumpheader.architectureversion bytes swopping 2005-10-02 11:31:45 +00:00
sconfig Add FBSDID, rename local variable time to not conflict with time() 2006-09-12 17:54:35 +00:00
setkey Markup fixes. 2006-09-18 11:55:10 +00:00
shutdown
slattach
spppcontrol
startslip - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
sunlabel Fix grammar error caused by my previous edit. 2005-03-30 18:54:41 +00:00
swapon
sysctl While convenient, avoid using alloca() for reasons specified in 2006-09-06 20:15:43 +00:00
tunefs
umount
Makefile rtsol is just a stripped-down version of rtsold and as such it should 2006-07-27 17:50:05 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00