jariq / IPwatchD

IP conflict detection tool for Linux
GNU General Public License v2.0
15 stars 9 forks source link

Support for devices with longer names #3

Closed jariq closed 6 years ago

jariq commented 6 years ago

Reported by Tyler Tarabula via e-mail on 2015-02-26:

Hi Jaroslav. Thanks for ipwatchd, it's great. We do some interface renaming in our environment (via udev) and so the 10 char limit for device names isn't quite sufficient for us. I patched ipwatchd.h in our running version of ipwatchd, but I suspect that others might want the same fix.

$ diff -u ipwatchd.h.orig ipwatchd.h
--- ipwatchd.h.orig 2015-02-26 08:55:26.000000000 -0500
+++ ipwatchd.h  2015-02-26 08:55:36.000000000 -0500
@@ -117,7 +117,7 @@
 /* Network device information */

 //! Size of buffer used for the name of the device
-#define IPWD_MAX_DEVICE_NAME_LEN 10
+#define IPWD_MAX_DEVICE_NAME_LEN 16

 //! Size of buffer used for IP and MAC address of the device
 #define IPWD_MAX_DEVICE_ADDRESS_LEN 20
jariq commented 6 years ago

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1249372