kern/64718: [patch] Bridged packets still seen by BPF listener after BIOCSEESENT ioctl.

Darren Reed darrenr at FreeBSD.ORG
Sat Apr 10 18:50:16 PDT 2004


The following reply was made to PR kern/64718; it has been noted by GNATS.

From: darrenr at FreeBSD.ORG (Darren Reed)
To: freebsd-gnats-submit at FreeBSD.org, emaste at sandvine.com
Cc:  
Subject: Re: kern/64718: [patch] Bridged packets still seen by BPF listener after BIOCSEESENT ioctl.
Date: Sat, 10 Apr 2004 18:45:28 -0700 (PDT)

 Read the man page for bpf(4):
      BIOCGSEESENT   (u_int) Set or get the flag determining whether locally
                     generated packets on the interface should be returned by
                     BPF.
 ....
 
 Now compare this to the first line of your problem description:
 "The BIOCSSEESENT ioctl sets a flag that controls whether received packets
  only, or both transmitted and received packets, are captured by BPF."
 
 There is no bug, as such here.
 
 What you are expecting is for BIOCSEESENT to toggle the feedback of
 packets being output in the forwarded case, not just the locally
 generated case.  It is your expectation that is wrong here.
 
 Darren


More information about the freebsd-bugs mailing list