bitkeeper revision 1.1159.1.492 (41c70d9ajmKl_WIpIbJHgGlAPGYUAQ)

Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-12-20 17:36:26 +00:00
commit 4afd68ee83
1 file changed
+7 -3
@@ -124,13 +124,17 @@ void netif_create(netif_be_create_t *create)
dev->hard_start_xmit = netif_be_start_xmit;
dev->get_stats = netif_be_get_stats;
memcpy(dev->dev_addr, create->mac, ETH_ALEN);
/* Disable queuing. */
dev->tx_queue_len = 0;
/* Force a different MAC from remote end. */
dev->dev_addr[2] ^= 1;
/*
* Initialise a dummy MAC address. We choose the numerically largest
* non-broadcast address to prevent the address getting stolen by an
* Ethernet bridge for STP purposes. (FE:FF:FF:FF:FF:FF)
*/
memset(dev->dev_addr, 0xFF, ETH_ALEN);
dev->dev_addr[0] &= ~0x01;
if ( (err = register_netdev(dev)) != 0 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.