From 1d0ade42dba3c30375694fb59eb2d06085271a71 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 19 Dec 2014 17:04:25 +0000 Subject: [rndis] Send RNDIS_INITIALISE_MSG The Hyper-V RNDIS implementation on Windows Server 2012 R2 requires that we send an explicit RNDIS initialisation message in order to get a working RX datapath. Signed-off-by: Michael Brown --- src/include/ipxe/rndis.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ipxe/rndis.h b/src/include/ipxe/rndis.h index 60ffd10f5..4e4ab7f8f 100644 --- a/src/include/ipxe/rndis.h +++ b/src/include/ipxe/rndis.h @@ -28,10 +28,10 @@ struct rndis_header { } __attribute__ (( packed )); /** RNDIS initialise message */ -#define RNDIS_INITIALIZE_MSG 0x00000002UL +#define RNDIS_INITIALISE_MSG 0x00000002UL /** RNDIS initialise message */ -struct rndis_initialize_message { +struct rndis_initialise_message { /** Request ID */ uint32_t id; /** Major version */ @@ -42,6 +42,24 @@ struct rndis_initialize_message { uint32_t mtu; } __attribute__ (( packed )); +/** Request ID used for initialisation + * + * This is a policy decision. + */ +#define RNDIS_INIT_ID 0xe110e110UL + +/** RNDIS major version */ +#define RNDIS_VERSION_MAJOR 1 + +/** RNDIS minor version */ +#define RNDIS_VERSION_MINOR 0 + +/** RNDIS maximum transfer size + * + * This is a policy decision. + */ +#define RNDIS_MTU 2048 + /** RNDIS initialise completion */ #define RNDIS_INITIALISE_CMPLT 0x80000002UL -- cgit v1.2.3-55-g7522