Commit in reactos on MAIN
include/ntos/rtl.h+3-31.33 -> 1.34
lib/ntdll/def/ntdll.def+17-11.128 -> 1.129
             /ntdll.edf+17-11.118 -> 1.119
lib/rtl/network.c+40-91.1 -> 1.2
+77-14
4 modified files
implemented RtlIpv4AddressToStringA/W and made ntdll export them.

reactos/include/ntos
rtl.h 1.33 -> 1.34
diff -u -r1.33 -r1.34
--- rtl.h	12 Aug 2004 06:04:21 -0000	1.33
+++ rtl.h	13 Sep 2004 20:25:25 -0000	1.34
@@ -1,4 +1,4 @@
-/* $Id: rtl.h,v 1.33 2004/08/12 06:04:21 ion Exp $
+/* $Id: rtl.h,v 1.34 2004/09/13 20:25:25 weiden Exp $
  * 
  */
 #ifndef __DDK_RTL_H
@@ -1643,7 +1643,7 @@
 RtlInvertRangeList (OUT PRTL_RANGE_LIST InvertedRangeList,
 		    IN PRTL_RANGE_LIST RangeList);
 
-NTSTATUS
+LPSTR
 STDCALL
 RtlIpv4AddressToStringA(
 	PULONG IP,
@@ -1659,7 +1659,7 @@
 	PULONG MaxSize
 	);
 
-NTSTATUS
+LPWSTR
 STDCALL
 RtlIpv4AddressToStringW(
 	PULONG IP,

reactos/lib/ntdll/def
ntdll.def 1.128 -> 1.129
diff -u -r1.128 -r1.129
--- ntdll.def	10 Sep 2004 23:29:18 -0000	1.128
+++ ntdll.def	13 Sep 2004 20:25:25 -0000	1.129
@@ -1,4 +1,4 @@
-; $Id: ntdll.def,v 1.128 2004/09/10 23:29:18 sedwards Exp $
+; $Id: ntdll.def,v 1.129 2004/09/13 20:25:25 weiden Exp $
 ;
 ; ReactOS Operating System
 ;
@@ -491,6 +491,22 @@
 RtlIntegerToChar@16
 RtlIntegerToUnicodeString@12
 RtlInvertRangeList@8
+RtlIpv4AddressToStringA@8
+RtlIpv4AddressToStringExA@16
+RtlIpv4AddressToStringExW@16
+RtlIpv4AddressToStringW@8
+RtlIpv4StringToAddressA@16
+RtlIpv4StringToAddressExA@16
+RtlIpv4StringToAddressExW@16
+RtlIpv4StringToAddressW@16
+RtlIpv6AddressToStringA@8
+RtlIpv6AddressToStringExA@16
+RtlIpv6AddressToStringExW@16
+RtlIpv6AddressToStringW@8
+RtlIpv6StringToAddressA@16
+RtlIpv6StringToAddressExA@16
+RtlIpv6StringToAddressExW@16
+RtlIpv6StringToAddressW@16
 RtlIsDosDeviceName_U@4
 RtlIsGenericTableEmpty@4
 RtlIsNameLegalDOS8Dot3@12

reactos/lib/ntdll/def
ntdll.edf 1.118 -> 1.119
diff -u -r1.118 -r1.119
--- ntdll.edf	10 Sep 2004 23:29:18 -0000	1.118
+++ ntdll.edf	13 Sep 2004 20:25:25 -0000	1.119
@@ -1,4 +1,4 @@
-; $Id: ntdll.edf,v 1.118 2004/09/10 23:29:18 sedwards Exp $
+; $Id: ntdll.edf,v 1.119 2004/09/13 20:25:25 weiden Exp $
 ;
 ; ReactOS Operating System
 ;
@@ -491,6 +491,22 @@
 RtlIntegerToChar=RtlIntegerToChar@16
 RtlIntegerToUnicodeString=RtlIntegerToUnicodeString@12
 RtlInvertRangeList=RtlInvertRangeList@8
+RtlIpv4AddressToStringA=RtlIpv4AddressToStringA@8
+RtlIpv4AddressToStringExA=RtlIpv4AddressToStringExA@16
+RtlIpv4AddressToStringExW=RtlIpv4AddressToStringExW@16
+RtlIpv4AddressToStringW=RtlIpv4AddressToStringW@8
+RtlIpv4StringToAddressA=RtlIpv4StringToAddressA@16
+RtlIpv4StringToAddressExA=RtlIpv4StringToAddressExA@16
+RtlIpv4StringToAddressExW=RtlIpv4StringToAddressExW@16
+RtlIpv4StringToAddressW=RtlIpv4StringToAddressW@16
+RtlIpv6AddressToStringA=RtlIpv6AddressToStringA@8
+RtlIpv6AddressToStringExA=RtlIpv6AddressToStringExA@16
+RtlIpv6AddressToStringExW=RtlIpv6AddressToStringExW@16
+RtlIpv6AddressToStringW=RtlIpv6AddressToStringW@8
+RtlIpv6StringToAddressA=RtlIpv6StringToAddressA@16
+RtlIpv6StringToAddressExA=RtlIpv6StringToAddressExA@16
+RtlIpv6StringToAddressExW=RtlIpv6StringToAddressExW@16
+RtlIpv6StringToAddressW=RtlIpv6StringToAddressW@16
 RtlIsDosDeviceName_U=RtlIsDosDeviceName_U@4
 ;RtlIsGenericTableEmpty
 RtlIsNameLegalDOS8Dot3=RtlIsNameLegalDOS8Dot3@12

reactos/lib/rtl
network.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- network.c	5 Aug 2004 18:17:37 -0000	1.1
+++ network.c	13 Sep 2004 20:25:26 -0000	1.2
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: network.c,v 1.1 2004/08/05 18:17:37 ion Exp $
+/* $Id: network.c,v 1.2 2004/09/13 20:25:26 weiden Exp $
  *
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS system libraries
@@ -25,23 +25,50 @@
  */
 
 #include <ddk/ntddk.h>
+#include <stdio.h>
 
 #define NDEBUG
 #include <debug.h>
 /* FUNCTIONS *****************************************************************/
 
+/* Borrow this from some headers... */
+typedef struct
+{
+  union
+  {
+    struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b;
+    struct { USHORT s_w1,s_w2; } S_un_w;
+    ULONG S_addr;
+  } S_un;
+} in_addr;
+
+typedef struct
+{
+  union
+  {
+    UCHAR _S6_u8[16];
+    USHORT _S6_u16[8];
+    ULONG _S6_u32[4];
+  } S6_un;
+} in6_addr;
+
+
 /*
-* @unimplemented
+* @implemented
 */
-NTSTATUS
+LPSTR
 STDCALL
 RtlIpv4AddressToStringA(
 	PULONG IP,
 	LPSTR Buffer
 	)
 {
-	UNIMPLEMENTED;
-	return STATUS_NOT_IMPLEMENTED;
+  in_addr addr;
+  addr.S_un.S_addr = *IP;
+  return Buffer + sprintf(Buffer, "%u.%u.%u.%u", addr.S_un.S_un_b.s_b1,
+                                                 addr.S_un.S_un_b.s_b2,
+                                                 addr.S_un.S_un_b.s_b3,
+                                                 addr.S_un.S_un_b.s_b4);
 }
 
 /*
@@ -61,17 +88,21 @@
 }
 
 /*
-* @unimplemented
+* @implemented
 */
-NTSTATUS
+LPWSTR
 STDCALL
 RtlIpv4AddressToStringW(
 	PULONG IP,
 	LPWSTR Buffer
 	)
 {
-	UNIMPLEMENTED;
-	return STATUS_NOT_IMPLEMENTED;
+  in_addr addr;
+  addr.S_un.S_addr = *IP;
+  return Buffer + swprintf(Buffer, L"%u.%u.%u.%u", addr.S_un.S_un_b.s_b1,
+                                                   addr.S_un.S_un_b.s_b2,
+                                                   addr.S_un.S_un_b.s_b3,
+                                                   addr.S_un.S_un_b.s_b4);
 }
 
 /*
CVSspam 0.2.8