Analysis
■
At lines 8 through 17, Win32-specific header files are included.The W32_fzs.h
header file is borrowed from the WinPcap source code and is used to properly
parse the interface names before displaying them on the Win32 platform.
■
At line 43, the get_adap() function is defined.This function takes a single
integer argument that is the index to the list of network interfaces available on
the local system.The value returned is name of the network interface at the
supplied index or NULL of the index is not valid.
■
At line 64, the list_adaps() function is defined.This function takes no arguments
and is used only to print a readable list of the network interfaces available on
the local system.This function will typically be called to display a list of net- ...