Subject: Re: packet capturing
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 01/21/2004 14:21:57
--Apple-Mail-5--220246777
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jan 21, 2004, at 1:13 PM, Jonathan Stone wrote:

> For the dynamic sizing thing: if you want to go ahead and add the
> hooks into init_main, please feel free.

It doesn't need to be done there.  It only needs to be done:

	1. The first time the sysctl value is queried

	2. The first time BPF is opened.

There's no need to add a hook anywhere.  Just check the physmem 
variable in those two places.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-5--220246777
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFADvuFOpVKkaBm8XkRAtFwAJwOzSkUKAq89WZH8nGC4yzl2H155ACcCgXb
ZMvIpYyWq/BfxzUtrYsI6+c=
=psKi
-----END PGP SIGNATURE-----

--Apple-Mail-5--220246777--