Revision: 529
          http://vde.svn.sourceforge.net/vde/?rev=529&view=rev
Author:   danielel
Date:     2011-12-30 21:14:29 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
Fixed endianness for lease time in DHCP client

Modified Paths:
--------------
    branches/vde-router/vde-2/src/vde_router/vder_dhcp.c

Modified: branches/vde-router/vde-2/src/vde_router/vder_dhcp.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_dhcp.c        2011-12-30 
10:33:54 UTC (rev 528)
+++ branches/vde-router/vde-2/src/vde_router/vder_dhcp.c        2011-12-30 
21:14:29 UTC (rev 529)
@@ -455,7 +455,7 @@
                                vder_iface_address_add(client.iface, 
client.address, client.netmask);
                                if ((client.gateway != 0) && ((client.gateway & 
client.netmask) == (client.address & client.netmask)))
                                        vder_route_add(0, 0, client.gateway, 1, 
client.iface);
-                               sleep(client.lease_time);
+                               sleep(ntohl(client.lease_time));
                                client.state = DHCPSTATE_REQUEST;
                                break;
                        default:

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to