uapi/linux/if_arp.h includes linux/netdevice.h, which uses IFNAMSIZ. Hence, use it instead of hard-coded value.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -118,7 +118,7 @@ struct arpreq { · 117 unmodified lines | ||
| 118 | 118 | struct sockaddr arp_ha; /* hardware address */ |
| 119 | 119 | int arp_flags; /* flags */ |
| 120 | 120 | struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ |
| 121 | − char arp_dev[16]; | |
| 121 | + char arp_dev[IFNAMSIZ]; | |
| 122 | 122 | }; |
| 123 | 123 | |
| 124 | 124 | struct arpreq_old { |