History

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.

Håkon Bugge committed 8 years ago

Commit 6a127091 parent 30f8eb51 file · +1 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/if_arp.h+1−1
@@ -118,7 +118,7 @@ struct arpreq { · 117 unmodified lines
118118 struct sockaddr arp_ha; /* hardware address */
119119 int arp_flags; /* flags */
120120 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */
121− char arp_dev[16];
121+ char arp_dev[IFNAMSIZ];
122122 };
123123
124124 struct arpreq_old {