summaryrefslogtreecommitdiff
path: root/usr.sbin/ldomctl/config.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-12-08 18:45:27 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-12-08 18:45:27 +0000
commit50604517eefb02e6d6d9b6437a3b2d9621076080 (patch)
tree2996a61847ade977e440f9d99d09b092890f7570 /usr.sbin/ldomctl/config.c
parent61d5f7d25c389f4232edab758f10bebd47e51667 (diff)
Fix previous.
Diffstat (limited to 'usr.sbin/ldomctl/config.c')
-rw-r--r--usr.sbin/ldomctl/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldomctl/config.c b/usr.sbin/ldomctl/config.c
index ba2b72956c7..d94a3fbd0a0 100644
--- a/usr.sbin/ldomctl/config.c
+++ b/usr.sbin/ldomctl/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.13 2012/12/08 15:11:40 kettenis Exp $ */
+/* $OpenBSD: config.c,v 1.14 2012/12/08 18:45:26 kettenis Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis
@@ -2119,14 +2119,14 @@ guest_add_vnetwork(struct guest *guest, uint64_t id, uint64_t mac_addr,
char *devalias;
char *devpath;
struct md_node *node;
- uint64_t remote_mac_addr;
+ uint64_t remote_mac_addr = -1;
primary = guest_lookup("primary");
lc = hvmd_add_vio(guest);
guest_add_vsw_port(primary, NULL, id, lc->server_endpoint->channel);
node = guest_find_vsw(primary);
- md_get_prop_val(primary->md, node, "local-mac-addr", &remote_mac_addr);
+ md_get_prop_val(primary->md, node, "local-mac-address", &remote_mac_addr);
guest_add_vnet_port(guest, NULL, mac_addr, remote_mac_addr, mtu, id, 0,
lc->client_endpoint->channel);