Revision d33d93b2 net/hub.c

b/net/hub.c
206 206
}
207 207

  
208 208
int net_init_hubport(const NetClientOptions *opts, const char *name,
209
                     VLANState *vlan)
209
                     VLANClientState *peer)
210 210
{
211 211
    const NetdevHubPortOptions *hubport;
212 212

  
213 213
    assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);
214 214
    hubport = opts->hubport;
215 215

  
216
    /* The hub is a "vlan" so this option makes no sense. */
217
    if (vlan) {
216
    /* Treat hub port like a backend, NIC must be the one to peer */
217
    if (peer) {
218 218
        return -EINVAL;
219 219
    }
220 220

  

Also available in: Unified diff