[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 1/4] qapi: Introduce UsernetTcpState
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v6 1/4] qapi: Introduce UsernetTcpState |
Date: |
Fri, 4 May 2018 15:42:04 +0800 |
This will be a drop-in replacement for the current TCPS_ macro/enum and
what we will return to users in the coming qmp command.
The next patch will drop TCPS_ to avoid duplication and keep further
refactoring simple.
Signed-off-by: Fam Zheng <address@hidden>
---
qapi/net.json | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/qapi/net.json b/qapi/net.json
index 9117c56972..fcddce62d6 100644
--- a/qapi/net.json
+++ b/qapi/net.json
@@ -689,3 +689,37 @@
##
{ 'event': 'NIC_RX_FILTER_CHANGED',
'data': { '*name': 'str', 'path': 'str' } }
+
+##
+# @UsernetTcpState:
+#
+# TCP States of a SLIRP connection.
+#
+# - States where connections are not established: none, closed, listen,
syn-sent,
+# syn-received
+#
+# - States where user has closed: fin-wait-1, closing, last-ack, fin-wait-2,
+# time-wait
+#
+# - States awaiting ACK of FIN: fin-wait-1, closing, last-ack
+#
+# 'none' state is used only when host forwarding
+#
+# Since 2.13
+#
+##
+{ 'enum': 'UsernetTcpState',
+ 'data':
+ ['closed',
+ 'listen',
+ 'syn-sent',
+ 'syn-received',
+ 'established',
+ 'close-wait',
+ 'fin-wait-1',
+ 'closing',
+ 'last-ack',
+ 'fin-wait-2',
+ 'time-wait',
+ 'none'
+ ] }
--
2.14.3
- [Qemu-devel] [PATCH v6 0/4] slirp: Add query-usernet QMP command, Fam Zheng, 2018/05/04
- [Qemu-devel] [PATCH v6 1/4] qapi: Introduce UsernetTcpState,
Fam Zheng <=
- [Qemu-devel] [PATCH v6 2/4] slirp: Use QAPI enum to replace TCPS_* macros, Fam Zheng, 2018/05/04
- [Qemu-devel] [PATCH v6 3/4] slirp: Add "query-usernet" QMP command, Fam Zheng, 2018/05/04
- [Qemu-devel] [PATCH v6 4/4] tests: Use query-usernet instead of 'info usernet', Fam Zheng, 2018/05/04
- Re: [Qemu-devel] [PATCH v6 0/4] slirp: Add query-usernet QMP command, no-reply, 2018/05/04
- Re: [Qemu-devel] [PATCH v6 0/4] slirp: Add query-usernet QMP command, Fam Zheng, 2018/05/15