- Forgot this file
authorCameron Gutman <aicommander@gmail.com>
Mon, 26 Oct 2009 03:19:30 +0000 (03:19 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 26 Oct 2009 03:19:30 +0000 (03:19 +0000)
svn path=/trunk/; revision=43769

reactos/drivers/network/tcpip/tcpip/ainfo.c [new file with mode: 0644]

diff --git a/reactos/drivers/network/tcpip/tcpip/ainfo.c b/reactos/drivers/network/tcpip/tcpip/ainfo.c
new file mode 100644 (file)
index 0000000..4f47f98
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS TCP/IP protocol driver
+ * FILE:        tcpip/ainfo.c
+ * PURPOSE:     Per-socket information.
+ * PROGRAMMER:  Cameron Gutman
+ */
+
+#include "precomp.h"
+
+TDI_STATUS SetAddressFileInfo(TDIObjectID *ID,
+                              PADDRESS_FILE AddrFile,
+                              PVOID Buffer,
+                              UINT BufferSize)
+{
+    switch (ID->toi_id)
+    {
+      case AO_OPTION_TTL:
+         if (BufferSize < sizeof(UCHAR))
+             return TDI_INVALID_PARAMETER;
+
+         AddrFile->TTL = *((PUCHAR)Buffer);
+         return TDI_SUCCESS;
+
+      default:
+         DbgPrint("Unimplemented option %x\n", ID->toi_id);
+
+         return TDI_INVALID_REQUEST;
+    }
+}
+
+TDI_STATUS GetAddressFileInfo(TDIObjectID *ID,
+                              PADDRESS_FILE AddrFile,
+                              PVOID Buffer,
+                              PUINT BufferSize)
+{
+    UNIMPLEMENTED
+
+    return TDI_INVALID_REQUEST;
+}