Jürgen Keil
2007-Jul-30 10:32 UTC
possible bug in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init()
in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init() if (need_setphysaddr) { if ((r = dlpi_set_physaddr(dh, DL_CURR_PHYS_ADDR, s->mac_addr, ETHERADDRL)) != DLPI_SUCCESS) { fprintf(logfile, "net_tap_init: cannot set physaddr (%d)\n", r); ret = -1; goto done; } } Shouldn''t dlpi_set_physaddr() be called with "mac_addr" instead of "s->mac_addr" ? The "s" pointer should point to NULL at this point, so I guess qemu-dm would either crash or use some random binary junk block as mac address... This message posted from opensolaris.org
David Edmondson
2007-Jul-30 22:55 UTC
Re: possible bug in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init()
Jürgen Keil wrote:> in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init() > > > if (need_setphysaddr) { > if ((r = dlpi_set_physaddr(dh, DL_CURR_PHYS_ADDR, > s->mac_addr, ETHERADDRL)) != DLPI_SUCCESS) { > fprintf(logfile, > "net_tap_init: cannot set physaddr (%d)\n", > r); > ret = -1; > goto done; > } > } > > > Shouldn''t dlpi_set_physaddr() be called with "mac_addr" instead of > "s->mac_addr" ?Yes. I''ll file a bug. dme.
David Edmondson
2007-Aug-02 21:09 UTC
Re: possible bug in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init()
On Mon, Jul 30, 2007 at 11:55:13PM +0100, David Edmondson wrote:> Jrgen Keil wrote: > > in xen.hg/tools/ioemu/tools/vl.c, function net_tap_init() > > > > > > if (need_setphysaddr) { > > if ((r = dlpi_set_physaddr(dh, DL_CURR_PHYS_ADDR, > > s->mac_addr, ETHERADDRL)) != DLPI_SUCCESS) { > > fprintf(logfile, > > "net_tap_init: cannot set physaddr (%d)\n", > > r); > > ret = -1; > > goto done; > > } > > } > > > > > > Shouldn''t dlpi_set_physaddr() be called with "mac_addr" instead of > > "s->mac_addr" ? > > Yes. I''ll file a bug.6588683 dme.
Possibly Parallel Threads
- [RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
- [RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
- [RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
- [RFC V3 0/5] Multiqueue support for tap and virtio-net/vhost
- Failure to instal S10U4 HVM at SNV85 Dom0