net: if_arp: use define instead of hard-coded value
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Fri, 21 Sep 2018 10:39:30 +0000 (12:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:22:32 +0000 (19:22 -0700)
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 <haakon.bugge@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_arp.h

index b68b4b3d9172d2ce59c1a2d941fae1e63c5287c0..c3cc5a9e5eaf064a945f7d96a5b4226cb243619c 100644 (file)
@@ -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 {