hub.c (ca7eb1848bb06d9b75784d7760b83c7b0beb1102) | hub.c (a30ecde6e795682d1473c45acae66a60a76fca2f) |
---|---|
1/* 2 * Hub net client 3 * 4 * Copyright IBM, Corp. 2012 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> --- 267 unchanged lines hidden (view full) --- 276 277 if (id) { 278 *id = port->hub->id; 279 } 280 return 0; 281} 282 283int net_init_hubport(const NetClientOptions *opts, const char *name, | 1/* 2 * Hub net client 3 * 4 * Copyright IBM, Corp. 2012 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> --- 267 unchanged lines hidden (view full) --- 276 277 if (id) { 278 *id = port->hub->id; 279 } 280 return 0; 281} 282 283int net_init_hubport(const NetClientOptions *opts, const char *name, |
284 NetClientState *peer) | 284 NetClientState *peer, Error **errp) |
285{ 286 const NetdevHubPortOptions *hubport; 287 288 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT); 289 assert(!peer); 290 hubport = opts->hubport; 291 292 net_hub_add_port(hubport->hubid, name); --- 62 unchanged lines hidden --- | 285{ 286 const NetdevHubPortOptions *hubport; 287 288 assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT); 289 assert(!peer); 290 hubport = opts->hubport; 291 292 net_hub_add_port(hubport->hubid, name); --- 62 unchanged lines hidden --- |