multicast packets from bpf

From: Andrew Thompson <thompsa_at_FreeBSD.org>
Date: Tue, 28 Aug 2007 16:00:26 +1200
Hi,


At the moment packets injected via bpf do not get the M_BCAST or M_MCAST
flags set. One consequence of this is that it messes up broadcasting
from if_bridge which assumes these flags are correct, using dhcpd on a
bridge interface is one way to trigger it.

Attached is a patch (bpf_mcast.diff) that fixes this up. There is some
concern about having bpf inspecting the protocol headers but i seems
unavoidable in order to determine if its multicast. tap(4) was also
thought to have this problem but it turned out not to since it passes
the frames to ether_input.

The other way is for the bridge to recheck for multicast destinations
for locally generated packets (bridge_bpfmcast.diff), but this is less
desirable.


Andrew

Received on Tue Aug 28 2007 - 02:00:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC