[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/dhcp/devel dhcp-3.0.3rc1-boot-file-server.patch,NONE,1.1



Author: jvdias

Update of /cvs/dist/rpms/dhcp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv22800

Added Files:
	dhcp-3.0.3rc1-boot-file-server.patch 
Log Message:
restore default tftp server ip to that of 3.0.2

dhcp-3.0.3rc1-boot-file-server.patch:
 dhcp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

--- NEW FILE dhcp-3.0.3rc1-boot-file-server.patch ---
--- dhcp-3.0.3rc1/server/dhcp.c.boot-file-server	2005-04-29 19:10:57.000000000 -0400
+++ dhcp-3.0.3rc1/server/dhcp.c	2005-07-14 14:37:13.000000000 -0400
@@ -1209,6 +1209,7 @@
 	log_info ("%s", msgbuf);
 
 	/* Figure out the address of the boot file server. */
+	raw.siaddr = from;
 	if ((oc =
 	     lookup_option (&server_universe, options, SV_NEXT_SERVER))) {
 		if (evaluate_option_cache (&d1, packet, (struct lease *)0,
@@ -2492,7 +2493,8 @@
 	}
 
 	/* Figure out the address of the boot file server. */
-	memset (&state -> siaddr, 0, sizeof state -> siaddr);
+	/* memset (&state -> siaddr, 0, sizeof state -> siaddr); */
+	memcpy (&state -> siaddr, state -> from.iabuf, sizeof state -> siaddr);
 	if ((oc =
 	     lookup_option (&server_universe,
 			    state -> options, SV_NEXT_SERVER))) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]