From: Antoine Martin <antoine@nagafix.co.uk>
To: Jeff Dike <jdike@addtoit.com>
Cc: Blaisorblade <blaisorblade@yahoo.it>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] regression: pcap broken in 2.6.20.x
Date: Mon, 30 Apr 2007 20:30:59 +0100 [thread overview]
Message-ID: <463643F3.4050809@nagafix.co.uk> (raw)
In-Reply-To: <20070430181042.GA8599@c2.user-mode-linux.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Jeff Dike wrote:
> On Mon, Apr 30, 2007 at 06:18:56PM +0100, Antoine Martin wrote:
>> Full marks for number of lines of code changed! (1!)
>
> Yeah, I thought that was a plus.
>
>> On the plus side, it only adds the parameter at the end, but it does
>> keep some code in there to deal with variable number/order for
>> [no]promisc and [no]optimized options, so I would prefer something like
>> this one - not just because I wrote it ;)
>> http://uml.nagafix.co.uk/pcap-macaddr.patch
>> Where the only required option is the pcap filter (which is harder to
>> move around since it doesn't have a fixed set of options - or does it?).
>
> On the negative side -
> I dislike assumptions like this:
Me too, but the mac address is later validated in setup_etheraddr the
validation is redundant.
> + //a mac address is always 17 characters long
> Suppose someone uses 2:1:2:3:4:5 (11 chars), which I did for testing?
I thought that was an invalid mac address?(I've never seen mac addresses
specified that way on any software or hardware - yet)
> This is also conflating a MAC address with a pcap option, which it
> isn't.
I quite liked the idea of having the freedom to specify things in any
order and not having to have empty comas but no biggie.
> So what happens when someone adds more options to libpcap and UML
> users start wanting to use them? I would say that we add
> 'eth0=pcapv1,if,mac,filter,opt1,opt2,...' and futureproof this wrt
> pcap options. People will have to rearrange their command lines in
> order to use this, but they already are in order to use the new
> options.
Yeah, I preferred that too, it is also more consistent with the way the
other transports do it, but it needed to be backwards compatible. Which
can still be done, but only as long as:
pcap-options!='[no]promisc!'='[no]optimize!'=mac-address='pcap'
Isn't it the case already?
> Everyone else will stick with the current 'eth0=pcap,...'
> format.
>
> So, unless you have strenuous objections, I think I will stick with my
> patch and wait for pcap to come up with more options.
Acked-by: Antoine Martin <antoine@nagafix.co.uk>
works for me (tm)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGNkPzGK2zHPGK1rsRCnCPAJ941sURMUK+XCY0DN3oC0e/I4qQowCfVoim
O4TJFIvpWyNYVumoPpcinek=
=AQjX
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-04-30 19:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-22 18:43 [uml-devel] regression: pcap broken in 2.6.20.x Antoine Martin
2007-04-25 20:48 ` Jeff Dike
2007-04-25 20:59 ` Antoine Martin
2007-04-26 14:12 ` Blaisorblade
2007-04-27 15:10 ` Jeff Dike
2007-04-27 15:21 ` Antoine Martin
2007-04-27 15:28 ` Antoine Martin
2007-04-27 15:50 ` Jeff Dike
2007-04-27 16:29 ` Antoine Martin
2007-04-27 16:46 ` Antoine Martin
2007-04-27 16:55 ` Antoine Martin
2007-04-27 20:20 ` Jeff Dike
2007-04-30 17:18 ` Antoine Martin
2007-04-30 18:10 ` Jeff Dike
2007-04-30 19:30 ` Antoine Martin [this message]
2007-04-30 21:32 ` Jeff Dike
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=463643F3.4050809@nagafix.co.uk \
--to=antoine@nagafix.co.uk \
--cc=blaisorblade@yahoo.it \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox