linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Nelio Pereira <nelio_pereira@yahoo.com.br>
Subject: Re: [uml-devel] uml_switch
Date: Thu, 30 Oct 2003 19:04:11 +0100	[thread overview]
Message-ID: <200310301903.41108.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20031023105524.88229.qmail@web20201.mail.yahoo.com>

Alle 12:55, giovedì 23 ottobre 2003, Nelio Pereira ha scritto:
> Hi list..
>
> I'm using UML to benchmark a distributed protocol
> (cluster membership service) on a virtual network. As
> a way of injecting faults, I thought about changing
> uml_switch so it would not forward every message it
> receives. Roughly speaking, it could deliver only a
> percentage of the messages.

Just use iptables. It's simpler. Download patch-o-matic: then use either 
base/nth.patch or base/random.patch(the second is maybe better) for the 
kernel that will have to support this new option. Then, to filter it, you 
must find a point where to apply the rule. I think the simpler one is to set 
up a bridge as specified for TUN/TAP in the networking page and then add the 
rule on the host FORWARD chain adding -i(or -o) br0. Or maybe, you should add 
it somewhere else(for instance, just use tap devices without a bridge, then 
add that rule with -i tap+ and -o tap+ on FORWARD: it will match packets 
being forwarded on the host between UML's).
>
> I would like to know where in the uml_switch code is
> the best place to do that. Actually, I'd like to
> intercept those messages in a place where I could know
> the sender and recipient IP of each message.

-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      parent reply	other threads:[~2003-11-01 19:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-23 10:55 [uml-devel] uml_switch Nelio Pereira
2003-10-23 14:28 ` Nuno Silva
2003-10-23 14:46   ` Nelio Pereira
2003-10-25  1:26     ` Jeff Dike
2003-10-23 18:11 ` Matt Zimmerman
2003-10-25 14:42   ` steven james
2003-10-25 18:37     ` Adam Heath
2003-10-25 22:34     ` Matt Zimmerman
2003-10-30 18:04 ` BlaisorBlade [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200310301903.41108.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=nelio_pereira@yahoo.com.br \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox