Searched hist:162641 (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/sbin/dhclient/
H A Dbpf.cdiff 162641 Mon Sep 25 23:02:02 MDT 2006 brooks 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

Completed in 59 milliseconds