svn commit: r304722 - in head/sys: dev/usb/net net
Sepherosa Ziehau
sephe at FreeBSD.org
Wed Aug 24 03:08:14 UTC 2016
Author: sephe
Date: Wed Aug 24 03:08:13 2016
New Revision: 304722
URL: https://svnweb.freebsd.org/changeset/base/304722
Log:
net/rndis: Add canonical RNDIS major/minor version as of today.
Reviewed by: hps
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7593
Modified:
head/sys/dev/usb/net/if_urndis.c
head/sys/net/rndis.h
Modified: head/sys/dev/usb/net/if_urndis.c
==============================================================================
--- head/sys/dev/usb/net/if_urndis.c Wed Aug 24 02:41:24 2016 (r304721)
+++ head/sys/dev/usb/net/if_urndis.c Wed Aug 24 03:08:13 2016 (r304722)
@@ -658,7 +658,7 @@ urndis_ctrl_init(struct urndis_softc *sc
msg.rm_type = htole32(REMOTE_NDIS_INITIALIZE_MSG);
msg.rm_len = htole32(sizeof(msg));
msg.rm_rid = 0;
- msg.rm_ver_major = htole32(1);
+ msg.rm_ver_major = htole32(RNDIS_VERSION_MAJOR);
msg.rm_ver_minor = htole32(1);
msg.rm_max_xfersz = htole32(RNDIS_RX_MAXLEN);
Modified: head/sys/net/rndis.h
==============================================================================
--- head/sys/net/rndis.h Wed Aug 24 02:41:24 2016 (r304721)
+++ head/sys/net/rndis.h Wed Aug 24 03:08:13 2016 (r304722)
@@ -23,6 +23,10 @@
#ifndef _NET_RNDIS_H_
#define _NET_RNDIS_H_
+/* Canonical major/minor version as of 22th Aug. 2016. */
+#define RNDIS_VERSION_MAJOR 0x00000001
+#define RNDIS_VERSION_MINOR 0x00000000
+
#define RNDIS_STATUS_BUFFER_OVERFLOW 0x80000005L
#define RNDIS_STATUS_FAILURE 0xC0000001L
#define RNDIS_STATUS_INVALID_DATA 0xC0010015L
More information about the svn-src-head
mailing list