[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TCP/IP noise simulator cont.
- To: Shlomi Fish <shlomif(at-nospam)techst02.technion.ac.il>
- Subject: Re: TCP/IP noise simulator cont.
- From: Gilad Ben-Yossef <gilad(at-nospam)benyossef.com>
- Date: Thu, 02 Aug 2001 10:26:12 +0300
- CC: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Organization: Great Illuminated Seers of Bavaria
- References: <Pine.GSO.4.33.0107291704430.6494-100000@techst02.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.12-20 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
Shlomi Fish wrote:
> This letter addresses two issues regarding my TCP/IP noise simulator
> project:
>
> 1. I set up a mailing-list to discuss it. To subscribe send an empty
> message to ip-noise-subscribe@iglu.org.il .
>
> 2. I wish to know how I can "grab traffic using firewalling rules from
> kernel mode out into user mode" and there decide what to do with the
> packet (namely, let it go on, drop it or delay it). OmerM showed me an
> example of how to do a very simple thing like that using a kernel module,
> but I also like to know how to do it in a user-mod
as someone already pointed out the best answer is QUEUE target of
Iptables (or use netlink socket).
BUT, are you sure that's what you want to do? sending packets back and
forth from kernel space to luser space is very inefficient becuase of
the context switches that must occur for this to happen. This is very
unscalable.
Gilad
--
Gilad Ben-Yossef <gilad@benyossef.com>
http://benyossef.com :: +972(54)756701
"Anything that can go wrong, will go wrong, while interrupts are disabled. "
-- Murphey's law of kernel programing.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il