xref: /reactos/drivers/network/tdi/tdi/handler.c (revision c2c66aff)
1 /*
2  * DESCRIPTION: Default TDI event handlers.
3  */
4 
5 #include "precomp.h"
6 
7 #define NDEBUG
8 #include <debug.h>
9 
10 /*
11  * ClientEventChainedReceiveDatagram
12  *
13  * @unimplemented
14  */
15 NTSTATUS
16 NTAPI
TdiDefaultChainedRcvDatagramHandler(IN PVOID TdiEventContext,IN LONG SourceAddressLength,IN PVOID SourceAddress,IN LONG OptionsLength,IN PVOID Options,IN ULONG ReceiveDatagramFlags,IN ULONG ReceiveDatagramLength,IN ULONG StartingOffset,IN PMDL Tsdu,IN PVOID TsduDescriptor)17 TdiDefaultChainedRcvDatagramHandler (
18 	IN	PVOID	TdiEventContext,
19 	IN	LONG	SourceAddressLength,
20 	IN	PVOID	SourceAddress,
21 	IN	LONG	OptionsLength,
22 	IN	PVOID	Options,
23 	IN	ULONG	ReceiveDatagramFlags,
24 	IN	ULONG	ReceiveDatagramLength,
25 	IN	ULONG	StartingOffset,
26 	IN	PMDL	Tsdu,
27 	IN	PVOID	TsduDescriptor
28 	)
29 {
30     UNIMPLEMENTED;
31 	return STATUS_NOT_IMPLEMENTED;
32 }
33 
34 
35 /*
36  * ClientEventChainedReceiveExpedited
37  *
38  * @unimplemented
39  */
40 NTSTATUS
41 NTAPI
TdiDefaultChainedRcvExpeditedHandler(IN PVOID TdiEventContext,IN CONNECTION_CONTEXT ConnectionContext,IN ULONG ReceiveFlags,IN ULONG ReceiveLength,IN ULONG StartingOffset,IN PMDL Tsdu,IN PVOID TsduDescriptor)42 TdiDefaultChainedRcvExpeditedHandler (
43 	IN	PVOID			TdiEventContext,
44 	IN	CONNECTION_CONTEXT	ConnectionContext,
45 	IN	ULONG			ReceiveFlags,
46 	IN	ULONG			ReceiveLength,
47 	IN	ULONG			StartingOffset,
48 	IN	PMDL			Tsdu,
49 	IN	PVOID			TsduDescriptor
50 	)
51 {
52     UNIMPLEMENTED;
53 	return STATUS_NOT_IMPLEMENTED;
54 }
55 
56 
57 /*
58  * ClientEventChainedReceive
59  *
60  * @unimplemented
61  */
62 NTSTATUS
63 NTAPI
TdiDefaultChainedReceiveHandler(IN PVOID TdiEventContext,IN CONNECTION_CONTEXT ConnectionContext,IN ULONG ReceiveFlags,IN ULONG ReceiveLength,IN ULONG StartingOffset,IN PMDL Tsdu,IN PVOID TsduDescriptor)64 TdiDefaultChainedReceiveHandler (
65 	IN	PVOID			TdiEventContext,
66 	IN	CONNECTION_CONTEXT	ConnectionContext,
67 	IN	ULONG			ReceiveFlags,
68 	IN	ULONG			ReceiveLength,
69 	IN	ULONG			StartingOffset,
70 	IN	PMDL			Tsdu,
71 	IN	PVOID			TsduDescriptor
72 	)
73 {
74     UNIMPLEMENTED;
75 	return STATUS_NOT_IMPLEMENTED;
76 }
77 
78 
79 /*
80  * ClientEventConnect
81  *
82  * @unimplemented
83  */
84 NTSTATUS
85 NTAPI
TdiDefaultConnectHandler(IN PVOID TdiEventContext,IN LONG RemoteAddressLength,IN PVOID RemoteAddress,IN LONG UserDataLength,IN PVOID UserData,IN LONG OptionsLength,IN PVOID Options,OUT CONNECTION_CONTEXT * ConnectionContext,OUT PIRP * AcceptIrp)86 TdiDefaultConnectHandler (
87 	IN	PVOID			TdiEventContext,
88         IN	LONG			RemoteAddressLength,
89         IN	PVOID			RemoteAddress,
90         IN	LONG			UserDataLength,
91         IN	PVOID			UserData,
92 	IN	LONG			OptionsLength,
93 	IN	PVOID			Options,
94 	OUT	CONNECTION_CONTEXT	* ConnectionContext,
95 	OUT	PIRP			* AcceptIrp
96 	)
97 {
98     UNIMPLEMENTED;
99 	return STATUS_NOT_IMPLEMENTED;
100 }
101 
102 
103 /*
104  * ClientEventDisconnect
105  *
106  * @unimplemented
107  */
108 NTSTATUS
109 NTAPI
TdiDefaultDisconnectHandler(IN PVOID TdiEventContext,IN CONNECTION_CONTEXT ConnectionContext,IN LONG DisconnectDataLength,IN PVOID DisconnectData,IN LONG DisconnectInformationLength,IN PVOID DisconnectInformation,IN ULONG DisconnectFlags)110 TdiDefaultDisconnectHandler (
111 	IN	PVOID			TdiEventContext,
112 	IN	CONNECTION_CONTEXT	ConnectionContext,
113 	IN	LONG			DisconnectDataLength,
114 	IN	PVOID			DisconnectData,
115 	IN	LONG			DisconnectInformationLength,
116 	IN	PVOID			DisconnectInformation,
117 	IN	ULONG			DisconnectFlags
118 	)
119 {
120     UNIMPLEMENTED;
121 	return STATUS_NOT_IMPLEMENTED;
122 }
123 
124 
125 /*
126  * ClientEventError
127  *
128  * @unimplemented
129  */
130 NTSTATUS
131 NTAPI
TdiDefaultErrorHandler(IN PVOID TdiEventContext,IN NTSTATUS Status)132 TdiDefaultErrorHandler (
133 	IN	PVOID		TdiEventContext,
134 	IN	NTSTATUS	Status
135 	)
136 {
137     UNIMPLEMENTED;
138 	return STATUS_NOT_IMPLEMENTED;
139 }
140 
141 
142 /*
143  * ClientEventReceiveDatagram
144  *
145  * @unimplemented
146  */
147 NTSTATUS
148 NTAPI
TdiDefaultRcvDatagramHandler(IN PVOID TdiEventContext,IN LONG SourceAddressLength,IN PVOID SourceAddress,IN LONG OptionsLength,IN PVOID Options,IN ULONG ReceiveDatagramFlags,IN ULONG BytesIndicated,IN ULONG BytesAvailable,OUT ULONG * BytesTaken,IN PVOID Tsdu,OUT PIRP * IoRequestPacket)149 TdiDefaultRcvDatagramHandler (
150 	IN	PVOID	TdiEventContext,
151 	IN	LONG	SourceAddressLength,
152 	IN	PVOID	SourceAddress,
153 	IN	LONG	OptionsLength,
154 	IN	PVOID	Options,
155 	IN	ULONG	ReceiveDatagramFlags,
156 	IN	ULONG	BytesIndicated,
157 	IN	ULONG	BytesAvailable,
158 	OUT	ULONG	* BytesTaken,
159 	IN	PVOID	Tsdu,
160 	OUT	PIRP	* IoRequestPacket
161 	)
162 {
163     UNIMPLEMENTED;
164 	return STATUS_NOT_IMPLEMENTED;
165 }
166 
167 
168 /*
169  * ClientEventReceiveExpedited
170  *
171  * @unimplemented
172  */
173 TDI_STATUS
174 NTAPI
TdiDefaultRcvExpeditedHandler(IN PVOID TdiEventContext,IN CONNECTION_CONTEXT ConnectionContext,IN ULONG ReceiveFlags,IN ULONG BytesIndicated,IN ULONG BytesAvailable,OUT ULONG * BytesTaken,IN PVOID Tsdu,OUT PIRP * IoRequestPacket)175 TdiDefaultRcvExpeditedHandler (
176 	IN	PVOID			TdiEventContext,
177 	IN	CONNECTION_CONTEXT	ConnectionContext,
178 	IN	ULONG			ReceiveFlags,
179 	IN	ULONG			BytesIndicated,
180 	IN	ULONG			BytesAvailable,
181 	OUT	ULONG			* BytesTaken,
182 	IN	PVOID			Tsdu,
183 	OUT	PIRP			* IoRequestPacket
184 	)
185 {
186     UNIMPLEMENTED;
187 	return STATUS_NOT_IMPLEMENTED;
188 }
189 
190 
191 /*
192  * ClientEventReceive
193  *
194  * @unimplemented
195  */
196 NTSTATUS
197 NTAPI
TdiDefaultReceiveHandler(IN PVOID TdiEventContext,IN CONNECTION_CONTEXT ConnectionContext,IN ULONG ReceiveFlags,IN ULONG BytesIndicated,IN ULONG BytesAvailable,OUT ULONG * BytesTaken,IN PVOID Tsdu,OUT PIRP * IoRequestPacket)198 TdiDefaultReceiveHandler (
199 	IN	PVOID			TdiEventContext,
200 	IN	CONNECTION_CONTEXT	ConnectionContext,
201 	IN	ULONG			ReceiveFlags,
202 	IN	ULONG			BytesIndicated,
203 	IN	ULONG			BytesAvailable,
204 	OUT	ULONG			* BytesTaken,
205 	IN	PVOID			Tsdu,
206 	OUT	PIRP			* IoRequestPacket
207 	)
208 {
209     UNIMPLEMENTED;
210 	return STATUS_NOT_IMPLEMENTED;
211 }
212 
213 
214 /*
215  * ClientEventSendPossible
216  *
217  * @unimplemented
218  */
219 TDI_STATUS
220 NTAPI
TdiDefaultSendPossibleHandler(IN PVOID TdiEventContext,IN PVOID ConnectionContext,IN ULONG BytesAvailable)221 TdiDefaultSendPossibleHandler (
222 	IN	PVOID	TdiEventContext,
223 	IN	PVOID	ConnectionContext,
224 	IN	ULONG	BytesAvailable
225 	)
226 {
227     UNIMPLEMENTED;
228 	return STATUS_NOT_IMPLEMENTED;
229 }
230 
231 NTSTATUS
232 NTAPI
TdiRegisterPnPHandlers(_In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo,_In_ ULONG InterfaceInfoSize,_Out_ HANDLE * BindingHandle)233 TdiRegisterPnPHandlers(
234     _In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo,
235     _In_ ULONG InterfaceInfoSize,
236     _Out_ HANDLE *BindingHandle)
237 {
238     UNIMPLEMENTED;
239     return STATUS_NOT_IMPLEMENTED;
240 }
241 
242 NTSTATUS
243 NTAPI
TdiDeregisterPnPHandlers(_In_ HANDLE BindingHandle)244 TdiDeregisterPnPHandlers(
245     _In_ HANDLE BindingHandle)
246 {
247     UNIMPLEMENTED;
248     return STATUS_NOT_IMPLEMENTED;
249 }
250 
251 /* EOF */
252