ReactOS 0.4.15-dev-8145-ga541a46
ainfo.c File Reference
#include "precomp.h"
Include dependency graph for ainfo.c:

Go to the source code of this file.

Functions

TDI_STATUS SetAddressFileInfo (TDIObjectID *ID, PADDRESS_FILE AddrFile, PVOID Buffer, UINT BufferSize)
 
TDI_STATUS GetAddressFileInfo (TDIObjectID *ID, PADDRESS_FILE AddrFile, PVOID Buffer, PUINT BufferSize)
 

Function Documentation

◆ GetAddressFileInfo()

TDI_STATUS GetAddressFileInfo ( TDIObjectID ID,
PADDRESS_FILE  AddrFile,
PVOID  Buffer,
PUINT  BufferSize 
)

Definition at line 65 of file ainfo.c.

69{
71
73}
#define UNIMPLEMENTED
Definition: debug.h:118
#define TDI_INVALID_REQUEST
Definition: tdistat.h:63

Referenced by InfoTdiQueryInformationEx().

◆ SetAddressFileInfo()

TDI_STATUS SetAddressFileInfo ( TDIObjectID ID,
PADDRESS_FILE  AddrFile,
PVOID  Buffer,
UINT  BufferSize 
)

Definition at line 11 of file ainfo.c.

15{
16 switch (ID->toi_id)
17 {
18 case AO_OPTION_TTL:
19 if (BufferSize < sizeof(UINT))
21
22 LockObject(AddrFile);
23 AddrFile->TTL = *((PUCHAR)Buffer);
24 UnlockObject(AddrFile);
25
26 return TDI_SUCCESS;
27
29 if (BufferSize < sizeof(UINT))
31
32 LockObject(AddrFile);
33 AddrFile->DF = *((PUINT)Buffer);
34 UnlockObject(AddrFile);
35
36 return TDI_SUCCESS;
37
39 if (BufferSize < sizeof(UINT))
41
42 LockObject(AddrFile);
43 AddrFile->BCast = *((PUINT)Buffer);
44 UnlockObject(AddrFile);
45
46 return TDI_SUCCESS;
47
49 if (BufferSize < sizeof(UINT))
51
52 LockObject(AddrFile);
53 AddrFile->HeaderIncl = *((PUINT)Buffer);
54 UnlockObject(AddrFile);
55
56 return TDI_SUCCESS;
57
58 default:
59 DbgPrint("Unimplemented option %x\n", ID->toi_id);
60
62 }
63}
Definition: bufpool.h:45
#define DbgPrint
Definition: hal.h:12
unsigned int * PUINT
Definition: ndis.h:50
unsigned int UINT
Definition: ndis.h:50
#define ID
Definition: ruserpass.c:36
UINT HeaderIncl
Definition: titypes.h:125
UCHAR TTL
Definition: titypes.h:122
UINT BCast
Definition: titypes.h:124
#define AO_OPTION_BROADCAST
Definition: tcpioctl.h:74
#define AO_OPTION_IP_DONTFRAGMENT
Definition: tcpioctl.h:72
#define AO_OPTION_TTL
Definition: tcpioctl.h:64
#define AO_OPTION_IP_HDRINCL
Definition: tcpioctl.h:75
#define TDI_SUCCESS
Definition: tdistat.h:30
#define TDI_INVALID_PARAMETER
Definition: tdistat.h:52
#define UnlockObject(Object)
Definition: titypes.h:44
#define LockObject(Object)
Definition: titypes.h:34
unsigned char * PUCHAR
Definition: typedefs.h:53
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254

Referenced by InfoTdiSetInformationEx().