Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-26 Thread Henrik Nordstrom
On Sun, 21 Aug 2005, Fabrice Bellard wrote: For the future, I would like to change the networks options to have something like: -net usernet,macaddr=00:11:a:0:2:19 -net tunfd=10,macaddr=00:11:a:0:1:19 to be consistent with the character devices. I like this. May even give it a stab as I hav

[Qemu-devel] PATCH: allow defining MAC address etc

2005-08-21 Thread jamal
Ok, here goes as per discussion... Please apply. This patch is intended for allowing automated clever scripting for networking (tuntap only). It does the following: 1) extends syntax for specifying the macaddr Examples: a) "-nics 2" Which will give you the 0x52:0x54:0x00:0x12:0x34:0x56 for

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-21 Thread Fabrice Bellard
Paul Brook wrote: On Sunday 21 August 2005 01:36, jamal wrote: This attached patch is intended for allowing automated clever scripting for networking (tuntap only). Please read and apply if possible. It does the following: a) allow for specifying the guest netdevice interface MAC address (in a

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-21 Thread jamal
On Sun, 2005-21-08 at 00:30 -0400, Jim C. Brown wrote: > Of course, since you'd have to specify a macaddr for each NIC anyways, might > as > well just use that as the ID. Since this seems to be the most popular approach i will create a patch with this approach later on today or early AM tommorow

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread Jim C. Brown
On Sat, Aug 20, 2005 at 11:18:29PM -0400, jamal wrote: > On Sat, 2005-20-08 at 22:46 -0400, jamal wrote: > > Note the Ids syntax would also be comma separated. > > > > Actually no - this would need to have the IDx prefix so that > you can pass the ID for non-sequential NICS. Example > -ID2 0 , -I

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread Jim C. Brown
On Sat, Aug 20, 2005 at 10:46:46PM -0400, jamal wrote: > > Your script should be able to get all the information it needs from the MAC > > address. You can either hardcode addresses or do pattern matching. > > The guest MAC address is arbitrary, so you can choose whatever numbering is > > conveni

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread jamal
On Sat, 2005-20-08 at 22:46 -0400, jamal wrote: > Note the Ids syntax would also be comma separated. > Actually no - this would need to have the IDx prefix so that you can pass the ID for non-sequential NICS. Example -ID2 0 , -ID5 3 and the rest get a default which is zero. cheers, jamal __

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread jamal
On Sun, 2005-21-08 at 03:22 +0100, Paul Brook wrote: > On Sunday 21 August 2005 02:56, jamal wrote: > > i could do this; macaddr is already being used to imply the start > > macaddr. Does macaddrs sound better? > > Part of the reason I suggested this was because it is an extension of the > exist

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread Paul Brook
On Sunday 21 August 2005 02:56, jamal wrote: > On Sun, 2005-21-08 at 02:04 +0100, Paul Brook wrote: > > On Sunday 21 August 2005 01:36, jamal wrote: > > > This attached patch is intended for allowing automated clever scripting > > > for networking (tuntap only). Please read and apply if possible. >

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread jamal
On Sun, 2005-21-08 at 02:04 +0100, Paul Brook wrote: > On Sunday 21 August 2005 01:36, jamal wrote: > > This attached patch is intended for allowing automated clever scripting > > for networking (tuntap only). Please read and apply if possible. > > > > It does the following: > > a) allow for specif

Re: [Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread Paul Brook
On Sunday 21 August 2005 01:36, jamal wrote: > This attached patch is intended for allowing automated clever scripting > for networking (tuntap only). Please read and apply if possible. > > It does the following: > a) allow for specifying the guest netdevice interface MAC address > (in addition to

[Qemu-devel] patch: allow defining MAC address etc

2005-08-20 Thread jamal
This attached patch is intended for allowing automated clever scripting for networking (tuntap only). Please read and apply if possible. It does the following: a) allow for specifying the guest netdevice interface MAC address (in addition to keeping the old functionality of specifying just the fi