mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
Here, the sizeof() function return the size of 'char *' instead of INTF_NAME_LEN. I replaced the use of the latter function by INTF_NAME_LEN (maximum size of the array intf_name). Here is the compiler warning output: route-bsd.c:171:38: warning: sizeof on array function parameter will return size of 'char *' instead of 'char [16]' [-Wsizeof-array-argument] strlcpy(intf_name, namebuf, sizeof(intf_name));
libdnet ------- libdnet provides a simplified, portable interface to several low-level networking routines, including network address manipulation, kernel arp(4) cache and route(4) table lookup and manipulation, network firewalling, network interface lookup and manipulation, IP tunnelling, and raw IP packet and Ethernet frame transmission. WWW: http://libdnet.sourceforge.net/ $Id: README 578 2005-02-14 21:00:17Z dugsong $