From a8197ee35ed4bb3a04c8823f63cf6842a6e8ff6c Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Mon, 5 Sep 2016 04:56:56 +0000 Subject: 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 --- sys/net/rndis.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/rndis.h b/sys/net/rndis.h index 0477a65701e5..fd0f22595732 100644 --- a/sys/net/rndis.h +++ b/sys/net/rndis.h @@ -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 -- cgit v1.2.3