Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
nagios-plugins
nagios-plugins.check_dhcp-char.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nagios-plugins.check_dhcp-char.patch of Package nagios-plugins
--- plugins-root/check_dhcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: plugins-root/check_dhcp.c =================================================================== --- plugins-root/check_dhcp.c.orig 2008-11-30 22:23:18.000000000 +0100 +++ plugins-root/check_dhcp.c 2009-11-24 23:08:36.691624000 +0100 @@ -146,7 +146,7 @@ typedef struct dhcp_packet_struct{ unsigned char chaddr [MAX_DHCP_CHADDR_LENGTH]; /* hardware address of this machine */ char sname [MAX_DHCP_SNAME_LENGTH]; /* name of DHCP server */ char file [MAX_DHCP_FILE_LENGTH]; /* boot file name (used for diskless booting?) */ - char options[MAX_DHCP_OPTIONS_LENGTH]; /* options */ + unsigned char options[MAX_DHCP_OPTIONS_LENGTH]; /* options */ }dhcp_packet; @@ -840,7 +840,7 @@ int add_dhcp_offer(struct in_addr source for(x=4;x<MAX_DHCP_OPTIONS_LENGTH;){ /* end of options (0 is really just a pad, but bail out anyway) */ - if((int)offer_packet->options[x]==-1 || (int)offer_packet->options[x]==0) + if(offer_packet->options[x]==DHCP_OPTION_END || offer_packet->options[x]==0) break; /* get option type */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor