[Nagiosplug-checkins] CVS: nagiosplug/contrib check_dhcp.c,1.5,1.6

Ethan Galstad egalstad at users.sourceforge.net
Wed May 19 23:10:04 CEST 2004


Update of /cvsroot/nagiosplug/nagiosplug/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29080/contrib

Modified Files:
	check_dhcp.c 
Log Message:
DHCP bug fix

Index: check_dhcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/check_dhcp.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** check_dhcp.c	20 Feb 2004 05:22:44 -0000	1.5
--- check_dhcp.c	20 May 2004 06:09:40 -0000	1.6
***************
*** 5,9 ****
  * Program: DHCP plugin for Nagios
  * License: GPL
! * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org)
  *
  * License Information:
--- 5,9 ----
  * Program: DHCP plugin for Nagios
  * License: GPL
! * Copyright (c) 2001-2004 Ethan Galstad (nagios at nagios.org)
  *
  * License Information:
***************
*** 481,484 ****
--- 481,485 ----
  		   not being interpreted correctly.  sigh... */
  		bzero(&source_address,sizeof(source_address));
+ 		address_size=sizeof(source_address);
                  recv_result=recvfrom(sock,(char *)buffer,buffer_size,MSG_PEEK,(struct sockaddr *)&source_address,&address_size);
  #ifdef DEBUG
***************
*** 821,825 ****
  	/*print_revision(progname,"$Revision$");*/
  
! 	printf("Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org)\n\n");
  	printf("This plugin tests the availability of DHCP servers on a network.\n\n");
  
--- 822,826 ----
  	/*print_revision(progname,"$Revision$");*/
  
! 	printf("Copyright (c) 2001-2004 Ethan Galstad (nagios at nagios.org)\n\n");
  	printf("This plugin tests the availability of DHCP servers on a network.\n\n");
  





More information about the Commits mailing list