Skip to content

Commit 6a12709

Browse files
Hakon-Buggedavem330
authored andcommitted
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>
1 parent 30f8eb5 commit 6a12709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/if_arp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct arpreq {
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 {

0 commit comments

Comments
 (0)