- Disassociate the socket context before closing so we don't get signalled with...
[reactos.git] / reactos / drivers / network / tcpip / tcpip / ainfo.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: tcpip/ainfo.c
5 * PURPOSE: Per-socket information.
6 * PROGRAMMER: Cameron Gutman
7 */
8
9 #include "precomp.h"
10
11 TDI_STATUS SetAddressFileInfo(TDIObjectID *ID,
12 PADDRESS_FILE AddrFile,
13 PVOID Buffer,
14 UINT BufferSize)
15 {
16 //KIRQL OldIrql;
17
18 switch (ID->toi_id)
19 {
20 #if 0
21 case AO_OPTION_TTL:
22 if (BufferSize < sizeof(UCHAR))
23 return TDI_INVALID_PARAMETER;
24
25 KeAcquireSpinLock(&AddrFile->Lock, &OldIrql);
26 AddrFile->TTL = *((PUCHAR)Buffer);
27 KeReleaseSpinLock(&AddrFile->Lock, OldIrql);
28
29 return TDI_SUCCESS;
30 #endif
31 default:
32 DbgPrint("Unimplemented option %x\n", ID->toi_id);
33
34 return TDI_INVALID_REQUEST;
35 }
36 }
37
38 TDI_STATUS GetAddressFileInfo(TDIObjectID *ID,
39 PADDRESS_FILE AddrFile,
40 PVOID Buffer,
41 PUINT BufferSize)
42 {
43 UNIMPLEMENTED
44
45 return TDI_INVALID_REQUEST;
46 }