On Freitag, 27. Januar 2017 22:34:22 CET Antonio Quartulli wrote: [...]
arpreq is already set to 0 few lines above. why not simpling "sizeof(arpreq.arp_dev) - 1" as last argument for the strncpy() and avoid the line below?
Or is this required for consistency with the rest of the code?
It is done for consistency.
Kind regards, Sven