summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef0431f)
raw | patch | inline | side by side (parent: ef0431f)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 20 Apr 2007 17:55:09 +0000 (17:55 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 20 Apr 2007 17:55:09 +0000 (17:55 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1698 f882894a-f735-0410-b71e-b25c423dba1c
plugins-root/check_dhcp.c | patch | blob | history |
index 993531cd73cad20bc528bb84db404e02892915e1..72405feac1a3a80c4a7676d3f51c9d9a488265c4 100644 (file)
struct sockaddr_in source;
struct sockaddr_in via;
int result=OK;
- int timeout=1;
int responses=0;
int x;
time_t start_time;
/* sends a DHCP packet */
int send_dhcp_packet(void *buffer, int buffer_size, int sock, struct sockaddr_in *dest){
- struct sockaddr_in myname;
int result;
result=sendto(sock,(char *)buffer,buffer_size,0,(struct sockaddr *)dest,sizeof(*dest));