From: Jeff Dike <jdike@addtoit.com>
To: Antoine Martin <antoine@nagafix.co.uk>
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 14:10:42 -0400 [thread overview]
Message-ID: <20070430181042.GA8599@c2.user-mode-linux.org> (raw)
In-Reply-To: <46362500.7000202@nagafix.co.uk>
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:
+ //a mac address is always 17 characters long
Suppose someone uses 2:1:2:3:4:5 (11 chars), which I did for testing?
This is also conflating a MAC address with a pcap option, which it
isn't.
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. 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.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
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 18:14 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 [this message]
2007-04-30 19:30 ` Antoine Martin
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=20070430181042.GA8599@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=antoine@nagafix.co.uk \
--cc=blaisorblade@yahoo.it \
--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.