blob: ccfb9b587f28fc1c12fbba335178c0d575d8f31d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff -ru nagios-plugins-1.4.3.orig/plugins-root/check_dhcp.c nagios-plugins-1.4.3/plugins-root/check_dhcp.c
--- nagios-plugins-1.4.3.orig/plugins-root/check_dhcp.c 2005-09-21 12:06:37.000000000 +0200
+++ nagios-plugins-1.4.3/plugins-root/check_dhcp.c 2006-05-21 15:40:27.000000000 +0200
@@ -192,7 +192,11 @@
unsigned char client_hardware_address[MAX_DHCP_CHADDR_LENGTH]="";
+#if IFNAMSIZ > 8
+char network_interface_name[IFNAMSIZ]="eth0";
+#else
char network_interface_name[8]="eth0";
+#endif
u_int32_t packet_xid=0;
|