cvs commit: src/sys/net if_tap.c

Bruce M. Simpson bms at FreeBSD.org
Mon Feb 5 12:47:32 UTC 2007


Gleb Smirnoff wrote:
> ...
> Moreover, in case of promisc + net.inet.ip.forwarding=1 our box will resend
> all the received foreign packets :(
>   

NetBSD has M_PROMISC presumably for detecting situations like this:
    http://fxr.watson.org/fxr/ident?v=NETBSD&i=M_PROMISC

> What do you think about checking that (ether_dhost == ours || BCAST || MCAST)
> before sending packet to ether_demux?
Not complete; we could be acting as an ARP proxy or even a Layer 2 proxy.

I have to run out the door to run some errands, but the above link is a 
start.

All the best,
BMS


More information about the cvs-src mailing list