Whamcloud - gitweb
LU-9934 build: support for gcc7
[fs/lustre-release.git] / lnet / utils / lnetconfig / liblnetconfig.h
index 227a66e..32ddbd2 100644 (file)
@@ -27,6 +27,7 @@
 #ifndef LIB_LNET_CONFIG_API_H
 #define LIB_LNET_CONFIG_API_H
 
+#include <net/if.h>
 #include <libcfs/util/string.h>
 #include <linux/lnet/lnet-dlc.h>
 #include <linux/lnet/nidstr.h>
@@ -48,7 +49,7 @@ struct lnet_dlc_network_descr {
 
 struct lnet_dlc_intf_descr {
        struct list_head intf_on_network;
-       char intf_name[LNET_MAX_STR_LEN];
+       char intf_name[IFNAMSIZ];
        struct cfs_expr_list *cpt_expr;
 };