svn commit: r305410 - head/sys/net

Sepherosa Ziehau sephe at FreeBSD.org
Mon Sep 5 04:56:57 UTC 2016


Author: sephe
Date: Mon Sep  5 04:56:56 2016
New Revision: 305410
URL: https://svnweb.freebsd.org/changeset/base/305410

Log:
  net/rndis: Define RNDIS status message, which could be sent by device.
  
  MFC after:	1 week
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D7757

Modified:
  head/sys/net/rndis.h

Modified: head/sys/net/rndis.h
==============================================================================
--- head/sys/net/rndis.h	Mon Sep  5 04:49:58 2016	(r305409)
+++ head/sys/net/rndis.h	Mon Sep  5 04:56:56 2016	(r305410)
@@ -295,9 +295,28 @@ struct rndis_reset_comp {
 	uint32_t rm_adrreset;
 };
 
-/* 802.3 link-state or undefined message error. */
+/* 802.3 link-state or undefined message error.  Sent by device. */
 #define	REMOTE_NDIS_INDICATE_STATUS_MSG	0x00000007
 
+struct rndis_status_msg {
+	uint32_t rm_type;
+	uint32_t rm_len;
+	uint32_t rm_status;
+	uint32_t rm_stbuflen;
+	uint32_t rm_stbufoffset;
+	/* rndis_diag_info */
+};
+
+/*
+ * Immediately after rndis_status_msg.rm_stbufoffset, if a control
+ * message is malformatted, or a packet message contains inappropriate
+ * content.
+ */
+struct rndis_diag_info {
+	uint32_t rm_diagstatus;
+	uint32_t rm_erroffset;
+};
+
 /* Keepalive messsage.  May be sent by device. */
 #define	REMOTE_NDIS_KEEPALIVE_MSG	0x00000008
 #define	REMOTE_NDIS_KEEPALIVE_CMPLT	0x80000008


More information about the svn-src-all mailing list