Skip to content

Commit

Permalink
[rndis] Ignore start-of-day RNDIS_INDICATE_STATUS_MSG with status 0x4…
Browse files Browse the repository at this point in the history
…0020006

Windows Server 2012 R2 generates an RNDIS_INDICATE_STATUS_MSG with a
status code of 0x4002006.  This status code does not appear to be
documented anywhere within the sphere of human knowledge.

Explicitly ignore this status code in order to avoid unnecessarily
cluttering the display when RNDIS debugging is enabled.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 20, 2014
1 parent 639632b commit f6a3bc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/ipxe/rndis.h
Expand Up @@ -191,6 +191,8 @@ enum rndis_status {
RNDIS_STATUS_MEDIA_CONNECT = 0x4001000bUL,
/** Device is disconnected from the medium */
RNDIS_STATUS_MEDIA_DISCONNECT = 0x4001000cUL,
/** Unknown start-of-day status code */
RNDIS_STATUS_WTF_WORLD = 0x40020006UL,
};

/** RNDIS keepalive message */
Expand Down
4 changes: 4 additions & 0 deletions src/net/rndis.c
Expand Up @@ -686,6 +686,10 @@ static void rndis_rx_status ( struct rndis_device *rndis,
netdev_link_down ( netdev );
break;

case RNDIS_STATUS_WTF_WORLD:
/* Ignore */
break;

default:
DBGC ( rndis, "RNDIS %s unexpected status %#08x:\n",
rndis->name, status );
Expand Down

0 comments on commit f6a3bc0

Please sign in to comment.