summaryrefslogtreecommitdiffstats
path: root/web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch')
-rw-r--r--web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch b/web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch
new file mode 100644
index 0000000..ccfb9b5
--- /dev/null
+++ b/web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch
@@ -0,0 +1,15 @@
1diff -ru nagios-plugins-1.4.3.orig/plugins-root/check_dhcp.c nagios-plugins-1.4.3/plugins-root/check_dhcp.c
2--- nagios-plugins-1.4.3.orig/plugins-root/check_dhcp.c 2005-09-21 12:06:37.000000000 +0200
3+++ nagios-plugins-1.4.3/plugins-root/check_dhcp.c 2006-05-21 15:40:27.000000000 +0200
4@@ -192,7 +192,11 @@
5
6 unsigned char client_hardware_address[MAX_DHCP_CHADDR_LENGTH]="";
7
8+#if IFNAMSIZ > 8
9+char network_interface_name[IFNAMSIZ]="eth0";
10+#else
11 char network_interface_name[8]="eth0";
12+#endif
13
14 u_int32_t packet_xid=0;
15