Subject: Re: Conditionalize expensive BPF operation
To: Martin Husemann <martin@duskware.de>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-net
Date: 04/30/2001 13:46:14
On Mon, Apr 30, 2001 at 10:40:36PM +0200, Martin Husemann wrote:

 > > I don't think you need to do this.  Checking ifp->if_bpf != NULL should
 > > be sufficient.
 > 
 > Oh, of course, if that is acceptable (I usually avoid touching opaque things,
 > even for simple tests like this, without a macro or function keeping the
 > abstraction sane).

Well, that's the test that everything else currently uses... *shrug* :-)

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