Re: recvfrom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 11, 2001 at  6:44PM +0200, Andi Kleen wrote:
> 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.

You'd still have a speed problem as well. Depending on what you're
doing, that's two copy_(to|from)_users of the entire packet. Being able
to combine raw packet filtering with the speed of mmapped packet sockets
seems a good way to do this quickly, especially if you don't need to
filter on the entire packet.

I'm still not sure why it locks up on SMP at gigabit ethernet speeds,
though.

-- 
Jason Lunz		Trellis Network Security
j@trellisinc.com	http://www.trellisinc.com/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux