Swap the port part of the address so it's reported correctly.
authorArt Yerkes <art.yerkes@gmail.com>
Fri, 11 Mar 2005 21:13:11 +0000 (21:13 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Fri, 11 Mar 2005 21:13:11 +0000 (21:13 +0000)
svn path=/trunk/; revision=13937

reactos/drivers/net/tcpip/tcpip/dispatch.c

index 378f266..4b91ecf 100644 (file)
@@ -621,7 +621,7 @@ NTSTATUS DispTdiQueryInformation(
         Address->TAAddressCount = 1;
         Address->Address[0].AddressLength = TDI_ADDRESS_LENGTH_IP;
         Address->Address[0].AddressType = TDI_ADDRESS_TYPE_IP;
-        Address->Address[0].Address[0].sin_port = AddrFile->Port;
+        Address->Address[0].Address[0].sin_port = htons(AddrFile->Port);
         Address->Address[0].Address[0].in_addr = 
           AddrFile->Address.Address.IPv4Address;        
         RtlZeroMemory(