Skip to content

Commit

Permalink
HVM-728 Multicast isn't available to VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmustacc committed Apr 12, 2012
1 parent 099e212 commit 6df50a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions net/vnic.c
Expand Up @@ -314,12 +314,24 @@ net_init_vnic(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)
}
}

/*
* We are enabling support for two different kinds of promiscuous modes.
* The first is getting us the basics of the unicast traffic that we
* care about. The latter is going to ensure that we also get other
* types of physical traffic such as multicast and broadcast.
*/
if (dlpi_promiscon(vsp->vns_hdl, DL_PROMISC_SAP) != DLPI_SUCCESS) {
error_report("vnic: failed to be promiscous with interface %s",
ifname);
return (-1);
}

if (dlpi_promiscon(vsp->vns_hdl, DL_PROMISC_PHYS) != DLPI_SUCCESS) {
error_report("vnic: failed to be promiscous with interface %s",
ifname);
return (-1);
}

fd = dlpi_fd(vsp->vns_hdl);

if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
Expand Down

0 comments on commit 6df50a0

Please sign in to comment.