Author: cgutman
Date: Sat Aug 9 18:44:44 2008
New Revision: 35251
URL:
http://svn.reactos.org/svn/reactos?rev=35251&view=rev
Log:
- Uncomment TdiQueryAddress and get it to compile
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c
branches/aicom-network-fixes/drivers/network/afd/include/afd.h
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/tdi.c [iso-8859-1] Sat Aug 9
18:44:44 2008
@@ -673,7 +673,6 @@
OutputLength); /* Return
information */
}
-#if 0
NTSTATUS TdiQueryAddress(
PFILE_OBJECT FileObject,
PULONG Address)
@@ -807,7 +806,6 @@
return Status;
}
-#endif
NTSTATUS TdiSend
( PIRP *Irp,
Modified: branches/aicom-network-fixes/drivers/network/afd/include/afd.h
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/include/afd.h [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/afd/include/afd.h [iso-8859-1] Sat Aug 9
18:44:44 2008
@@ -30,6 +30,52 @@
#define IOCTL_TCP_QUERY_INFORMATION_EX \
CTL_CODE(FILE_DEVICE_NETWORK, 0, METHOD_NEITHER, FILE_ANY_ACCESS)
+
+#define TL_INSTANCE 0
+#define IP_MIB_STATS_ID 1
+#define IP_MIB_ADDRTABLE_ENTRY_ID 0x102
+
+typedef struct IPSNMP_INFO {
+ ULONG Forwarding;
+ ULONG DefaultTTL;
+ ULONG InReceives;
+ ULONG InHdrErrors;
+ ULONG InAddrErrors;
+ ULONG ForwDatagrams;
+ ULONG InUnknownProtos;
+ ULONG InDiscards;
+ ULONG InDelivers;
+ ULONG OutRequests;
+ ULONG RoutingDiscards;
+ ULONG OutDiscards;
+ ULONG OutNoRoutes;
+ ULONG ReasmTimeout;
+ ULONG ReasmReqds;
+ ULONG ReasmOks;
+ ULONG ReasmFails;
+ ULONG FragOks;
+ ULONG FragFails;
+ ULONG FragCreates;
+ ULONG NumIf;
+ ULONG NumAddr;
+ ULONG NumRoutes;
+} IPSNMP_INFO, *PIPSNMP_INFO;
+
+typedef struct IPADDR_ENTRY {
+ ULONG Addr;
+ ULONG Index;
+ ULONG Mask;
+ ULONG BcastAddr;
+ ULONG ReasmSize;
+ USHORT Context;
+ USHORT Pad;
+} IPADDR_ENTRY, *PIPADDR_ENTRY;
+
+#define DN2H(dw) \
+ ((((dw) & 0xFF000000L) >> 24) | \
+ (((dw) & 0x00FF0000L) >> 8) | \
+ (((dw) & 0x0000FF00L) << 8) | \
+ (((dw) & 0x000000FFL) << 24))
#define SOCKET_STATE_INVALID_TRANSITION ((DWORD)-1)
#define SOCKET_STATE_CREATED 0