Probably the best way to do this is (if you want IPv4 only) in
a netfilter module.  You might want to look into the ComFIRM project,
as they have similar goals (don't know whether they have code yet
though).

If you do it in userspace, using the QUEUE iptables target is probably
a nicer solution than libpcap/libnet.


cheers,
Lennert


On Thu, Dec 13, 2001 at 10:19:51AM -0800, Alen Peacock wrote:

> Just a quick judgement-call question:
> 
>   Suppose I want to use a bridge as a
> link-characteristic generator, i.e., I want the bridge
> to interject a user-specified amount of noise into the
> data that passes through, perhaps using an external
> model.
>   Would modifications to the existing kernel bridge
> code seem like a reasonable way to do this, or would I
> be better off using libpcap and libnet in user space
> to arrive at the desired effect?
> 
>   I'll probably muck around with both options, but
> would appreciate any sage input anyone here could
> offer me.
> 
>   Thanks,
>   Al
> 
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge

Reply via email to