summaryrefslogtreecommitdiffstats
path: root/web/attachments/178761-nagiosplug-check_dhcp-ifnamsiz.patch
diff options
context:
space:
mode:
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