All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Iguchi-Cartigny <julien.cartigny@unilim.fr>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Connecting UML_SWITCH and Wireshark
Date: Thu, 04 Sep 2008 11:17:53 +0200	[thread overview]
Message-ID: <48BFA7C1.7070105@unilim.fr> (raw)
In-Reply-To: <20080903175933.GB9917@c2.user-mode-linux.org>

[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]

Hello Jeff,

Both solutions don't satisfy my needs.

- My UML machines run only in terminal mode (no X)
- I don't want to use mechanisms which require root rights.

I've investigated the code of uml_switch and I think a slight
modification can offer a user-level sniff for UML: add a new request
type (uml_switch.c) and create a simple program which connect to the
uml_switch and just dump (in raw or libpcap format) in standard input
the traffic.

I don't think it requires a lot of works...

Julien.

Jeff Dike wrote:
> On Mon, Sep 01, 2008 at 05:44:39PM +0200, Julien Iguchi-Cartigny wrote:
>> I'm using Netkit (www.netkit.org): it's a network simulator using UML
>> and I want to show packets exchanged between the UML machines. I believe
>> the best way is to
>>
>> - use wireshark with the flag "-" to capture packets in the standard input.
>> - use netcat to read the data socket of uml_switch and print to the
>> standard output
>>
>> But uml_switch uses a ctl socket to open new port. I need a way to
>> manually open a port by uml_switch to connect netcat. I don't think
>> uml_switch offer command-line instruction for this, so is the best way
>> to write a short program writing on the ctl socket of uml_switch ? If
>> yes, what data to send to uml_switch ?
> 
> If you want to capture UML network traffic going over uml_switch (be
> it with wireshark or tcpdump - it doesn't matter), there are two basic
> ways of doing it:
> 	enable hub mode (uml_switch -hub) and then either
> 
> 	sniff from a UML's eth0 (a third UML if you don't want to
> interfere with the communicating UMLs), or
> 	add a host tap device to the switch (uml_switch -tap tap<n>)
> and sniff that.
> 
> 				Jeff
> 


-- 
Trouble-a-cat Limited

[-- Attachment #2: julien_cartigny.vcf --]
[-- Type: text/x-vcard, Size: 414 bytes --]

begin:vcard
fn:Julien Iguchi-Cartigny
n:Iguchi-Cartigny;Julien
org;quoted-printable;quoted-printable:Universit=C3=A9 de Limoges;D=C3=A9partement DMI
adr;quoted-printable:83, rue d'Isle;;Site Jid=C3=A9;Limoges;;87000;France
email;internet:julien.cartigny@unilim.fr
title:Assistant Professor
tel;work:+33555436930
tel;cell:+33681606483
x-mozilla-html:FALSE
url:http://msi.unilim.fr/~cartigny/
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #4: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2008-09-04  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 15:44 [uml-devel] Connecting UML_SWITCH and Wireshark Julien Iguchi-Cartigny
2008-09-01 17:44 ` vincent-perrier
2008-09-02  8:39   ` Julien Iguchi-Cartigny
2008-09-02 10:18     ` Luca Bigliardi
2008-09-02 14:29       ` Julien Iguchi-Cartigny
2008-09-02 19:08     ` vincent-perrier
2008-09-03 17:59 ` Jeff Dike
2008-09-04  9:17   ` Julien Iguchi-Cartigny [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=48BFA7C1.7070105@unilim.fr \
    --to=julien.cartigny@unilim.fr \
    --cc=jdike@addtoit.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.