File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ void hmp_info_network(Monitor *mon, const QDict *qdict);
176
176
void net_socket_rs_init (SocketReadState * rs ,
177
177
SocketReadStateFinalize * finalize ,
178
178
bool vnet_hdr );
179
+ NetClientState * qemu_get_peer (NetClientState * nc , int queue_index );
179
180
180
181
/* NIC info */
181
182
Original file line number Diff line number Diff line change @@ -325,6 +325,13 @@ void *qemu_get_nic_opaque(NetClientState *nc)
325
325
return nic -> opaque ;
326
326
}
327
327
328
+ NetClientState * qemu_get_peer (NetClientState * nc , int queue_index )
329
+ {
330
+ assert (nc != NULL );
331
+ NetClientState * ncs = nc + queue_index ;
332
+ return ncs -> peer ;
333
+ }
334
+
328
335
static void qemu_cleanup_net_client (NetClientState * nc )
329
336
{
330
337
QTAILQ_REMOVE (& net_clients , nc , next );
You can’t perform that action at this time.
0 commit comments