Author: cgutman
Date: Wed May 6 02:40:49 2009
New Revision: 40804
URL:
http://svn.reactos.org/svn/reactos?rev=40804&view=rev
Log:
- Implement and register a ProtocolUnbindAdapter handler
Modified:
trunk/reactos/drivers/network/tcpip/datalink/lan.c
Modified: trunk/reactos/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/data…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Wed May 6 02:40:49
2009
@@ -1266,6 +1266,16 @@
return NdisStatus;
}
+VOID
+NTAPI
+ProtocolUnbindAdapter(
+ PNDIS_STATUS Status,
+ NDIS_HANDLE ProtocolBindingContext,
+ NDIS_HANDLE UnbindContext)
+{
+ /* We don't pend any unbinding so we can just ignore UnbindContext */
+ *Status = LANUnregisterAdapter((PLAN_ADAPTER)ProtocolBindingContext);
+}
NTSTATUS LANRegisterProtocol(
PNDIS_STRING Name)
@@ -1304,6 +1314,7 @@
ProtChars.StatusCompleteHandler = ProtocolStatusComplete;
ProtChars.BindAdapterHandler = ProtocolBindAdapter;
ProtChars.PnPEventHandler = ProtocolPnPEvent;
+ ProtChars.UnbindAdapterHandler = ProtocolUnbindAdapter;
/* Try to register protocol */
NdisRegisterProtocol(&NdisStatus,