Revision a0104e0e net.c
b/net.c | ||
---|---|---|
1210 | 1210 |
void do_info_network(Monitor *mon) |
1211 | 1211 |
{ |
1212 | 1212 |
VLANState *vlan; |
1213 |
VLANClientState *vc; |
|
1213 | 1214 |
|
1214 | 1215 |
QTAILQ_FOREACH(vlan, &vlans, next) { |
1215 |
VLANClientState *vc; |
|
1216 |
|
|
1217 | 1216 |
monitor_printf(mon, "VLAN %d devices:\n", vlan->id); |
1218 | 1217 |
|
1219 | 1218 |
QTAILQ_FOREACH(vc, &vlan->clients, next) { |
1220 | 1219 |
monitor_printf(mon, " %s: %s\n", vc->name, vc->info_str); |
1221 | 1220 |
} |
1222 | 1221 |
} |
1222 |
monitor_printf(mon, "Devices not on any VLAN:\n"); |
|
1223 |
QTAILQ_FOREACH(vc, &non_vlan_clients, next) { |
|
1224 |
monitor_printf(mon, " %s: %s", vc->name, vc->info_str); |
|
1225 |
if (vc->peer) { |
|
1226 |
monitor_printf(mon, " peer=%s", vc->peer->name); |
|
1227 |
} |
|
1228 |
monitor_printf(mon, "\n"); |
|
1229 |
} |
|
1223 | 1230 |
} |
1224 | 1231 |
|
1225 | 1232 |
void do_set_link(Monitor *mon, const QDict *qdict) |
Also available in: Unified diff