From: Håkon Bugge Date: Fri, 21 Sep 2018 10:39:30 +0000 (+0200) Subject: net: if_arp: use define instead of hard-coded value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a12709da354ea149fdf86c4c9aba5b5033e9cf2;p=openwrt%2Fstaging%2Fblogic.git net: if_arp: use define instead of hard-coded value uapi/linux/if_arp.h includes linux/netdevice.h, which uses IFNAMSIZ. Hence, use it instead of hard-coded value. Signed-off-by: Håkon Bugge Signed-off-by: David S. Miller --- diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h index b68b4b3d9172..c3cc5a9e5eaf 100644 --- a/include/uapi/linux/if_arp.h +++ b/include/uapi/linux/if_arp.h @@ -118,7 +118,7 @@ struct arpreq { struct sockaddr arp_ha; /* hardware address */ int arp_flags; /* flags */ struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ - char arp_dev[16]; + char arp_dev[IFNAMSIZ]; }; struct arpreq_old {