diff options
| author | Håkon Bugge <[email protected]> | 2018-09-21 12:39:30 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-09-21 19:22:32 -0700 |
| commit | 6a12709da354ea149fdf86c4c9aba5b5033e9cf2 (patch) | |
| tree | 60fdc2678ff4aabc4906b5d2bb24738cf3ad7596 /include/uapi/linux | |
| parent | 30f8eb55873ef078f5f02f636061d9399debbeab (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/if_arp.h | 2 |
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 { |