brooks 5e9ad15c82 MFC rev 1.7
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>
Approved by:	re (ken)
2006-09-29 03:07:41 +00:00
..
2006-09-29 03:07:41 +00:00
2006-05-13 03:24:00 +00:00
2005-06-22 14:55:59 +00:00
2006-05-13 03:42:01 +00:00
2005-06-22 14:55:59 +00:00
2005-06-22 14:55:59 +00:00
2006-02-15 14:58:59 +00:00
2005-06-25 11:03:06 +00:00