aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHåkon Bugge <Haakon.Bugge@oracle.com>2018-09-21 12:39:30 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-21 19:22:32 -0700
commit6a12709da354ea149fdf86c4c9aba5b5033e9cf2 (patch)
tree60fdc2678ff4aabc4906b5d2bb24738cf3ad7596 /include
parentnet: if_arp: Fix incorrect indents (diff)
downloadlinux-dev-6a12709da354ea149fdf86c4c9aba5b5033e9cf2.tar.xz
linux-dev-6a12709da354ea149fdf86c4c9aba5b5033e9cf2.zip
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 <haakon.bugge@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/if_arp.h2
1 files changed, 1 insertions, 1 deletions
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 {