■
At lines 110 through 114, the ioctl() function is called with the SIOCGIF-
CONF value to populate the list.
■
At lines 116 through 135, each IP address in the list returned from the ioctl()
function is iterated in a loop in a manner similar to the Win32-specific
method. When the index of the IP address in the list matches the index passed
to the function, that IP address is copied into the address variable and passed to
the function after which the function returns.
Pcap and WinPcap
The standard for raw-packet capture on the UNIX platform is the libpcap packet capture
library.This library is frequently used in network security tools for a variety of purposes
including in network scanners and network monitoring software.
While many UNIX platforms ship ...