freebsd-dev/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
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
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
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
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
kldload
kldstat
kldunload Bump a date in .Dd field. Last change brought some new functionality. 2006-02-27 22:48:58 +00:00
ldconfig
mca
md5
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
mount_ext2fs
mount_hpfs
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
mount_ntfs
mount_nullfs Add a missing .Pp call. 2006-04-19 19:21:42 +00:00
mount_reiserfs
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
mount_unionfs
natd
newfs
newfs_msdos
nfsiod
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
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore
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
sunlabel
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