On Wed, Apr 11, 2001 at 12:27:01PM -0400, Jason Lunz wrote: > ak@suse.de said: > >It's not possible using raw sockets, but you can do it via appropiate > >netfilter rules and the netfilter user queue target. Then all packets > >not reinjected by the user queue daemon will get lost. This is a 2.4 > >solution. > > True, but netfilter is IP-only AFAIK. I've hacked in a way to do this > for *all* protocols, but as far as I can tell, you can't do it without > dropping the skb before handing it off to the registered packet_types in > net_rx_action(). If you don't need receiving on the local box you could also do it via ethertap device or packet socket on dummy device, and then reinject into the network. It'll not work for local packets though, because the routing code does not allow to route locally destined packets somewhere else. -Andi - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org