[ros-diffs] [cgutman] 38727: - Set the address type for the broadcast address - Zero the broadcast address in DispTdiDeleteIPAddress

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Jan 12 18:46:05 CET 2009


Author: cgutman
Date: Mon Jan 12 11:46:05 2009
New Revision: 38727

URL: http://svn.reactos.org/svn/reactos?rev=38727&view=rev
Log:
 - Set the address type for the broadcast address
 - Zero the broadcast address in DispTdiDeleteIPAddress

Modified:
    branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c

Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c?rev=38727&r1=38726&r2=38727&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Mon Jan 12 11:46:05 2009
@@ -1553,6 +1553,7 @@
             IF->Unicast.Address.IPv4Address = IpAddrChange->Address;
             IF->Netmask.Type = IP_ADDRESS_V4;
             IF->Netmask.Address.IPv4Address = IpAddrChange->Netmask;
+            IF->Broadcast.Type = IP_ADDRESS_V4;
 	    IF->Broadcast.Address.IPv4Address =
 		IF->Unicast.Address.IPv4Address |
 		~IF->Netmask.Address.IPv4Address;
@@ -1587,6 +1588,8 @@
             IF->Unicast.Address.IPv4Address = 0;
             IF->Netmask.Type = IP_ADDRESS_V4;
             IF->Netmask.Address.IPv4Address = 0;
+            IF->Broadcast.Type = IP_ADDRESS_V4;
+            IF->Broadcast.Address.IPv4Address = 0;
             Status = STATUS_SUCCESS;
         }
     } EndFor(IF);



More information about the Ros-diffs mailing list