MB> I found similar problem with bpf flag BIOCSSEESENT. Here is simple
MB> workaround:
Yes its the same problem that i've found but it is not limited to the
ethernet case. virtually each bpf_mtap must be modified to add support
for a 'real' pkthdr.
fabien
To Unsubscribe: send mail to [EMAIL
I found similar problem with bpf flag BIOCSSEESENT. Here is simple
workaround:
if_ethersubr.c: ether_input()
/* Check for a BPF tap */
if (ifp->if_bpf != NULL) {
/* This kludge is OK; BPF treats the "mbuf" as read-only */
struct mbuf m0;
m
Hi,
It seems there is a problem in the bpf_mtap code:
Actually the code assume in the seesent case that mbuf will have a pkthdr structure.
There is 2 problems here:
+ they did not check for that with (m_flag & M_PKTHDR)
+ at the upper level the caller forge fake mbuf that did not