Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2004 15:00:25 -0400
From:      Don Bowman <don@sandvine.com>
To:        Don Bowman <don@sandvine.com>, "'net@freebsd.org'" <net@freebsd.org>
Subject:   RE: Question on SOCK_RAW, implement a bpf->other host tee
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C85337051D9365@mail.sandvine.com>

index | next in thread | raw e-mail

From: Don Bowman [mailto:don@sandvine.com]
> I'm trying to implement a 'tee' which reads
> from bpf, and sends matching packets to
> another layer-2 adjacent host.
> 

Sorry to follow up my own post, but...
More specifically, it appears the packet does
try and transmit, but the destination MAC is
(uninitialised?) somewhat random, different
on each packet, not legal.

I can capture it on the correct output interface
with tcpdump. The interface type is xl.

Shouldn't the stack ARP for the destination
in my 'sendto', and fill in the ether header?
The ether-source is filled in, presumably by
the driver.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C85337051D9365>