From: Sebastien GODARD Date: Sat, 6 Feb 2021 08:11:08 +0000 (+0100) Subject: sar: Don't use IFNAMSIZ value from X-Git-Tag: v12.5.3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a78ce152f28e698bf3010cb3779351e238a0216;p=sysstat sar: Don't use IFNAMSIZ value from IFNAMSIZ value is used to set the maximum length of the network interface name, and for the definition of structures used to save data in the binary data files (saDD). We cannot allow that a new kernel value for IFNAMSIZ changes the format of saDD binary data files. So now use a constant value of 16 (which is the present value of IFNAMSIZ). Signed-off-by: Sebastien GODARD --- diff --git a/rd_stats.h b/rd_stats.h index 9797fb1..8e401bd 100644 --- a/rd_stats.h +++ b/rd_stats.h @@ -14,16 +14,10 @@ *************************************************************************** */ -/* Get IFNAMSIZ */ -#include -#ifndef IFNAMSIZ -#define IFNAMSIZ 16 -#endif - /* Maximum length of block device name */ #define MAX_DEV_LEN 128 /* Maximum length of network interface name */ -#define MAX_IFACE_LEN IFNAMSIZ +#define MAX_IFACE_LEN 16 /* Maximum length of USB manufacturer string */ #define MAX_MANUF_LEN 24 /* Maximum length of USB product string */