int eth32cfg_plugin_interface_type(eth32cfgiflist handle, int index, int *type);
This function retrieves the interface type for one of the interfaces in the network interface list that was previously obtained by calling eth32cfg_plugin_interface_list.
handle - The value returned by eth32cfg_plugin_interface_list
index - The index of the interface within the list
type - Pointer to variable which will receive the interface type. This will be one of the following values:
ETH32CFG_IFTYPE_OTHER - This is used if the plugin provides information about the interface type, but it isn't one of the predefined constants.
ETH32CFG_IFTYPE_ETHERNET - Ethernet interface
ETH32CFG_IFTYPE_TOKENRING - Token Ring interface
ETH32CFG_IFTYPE_FDDI - FDDI (Fiber Distributed Data Interface) interface
ETH32CFG_IFTYPE_PPP - PPP (Point-to-Point Protocol) interface
ETH32CFG_IFTYPE_LOOPBACK - Local loopback interface (e.g. 127.0.0.1)
ETH32CFG_IFTYPE_SLIP - SLIP (Serial Line Internet Protocol) interface
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes. If the currently loaded plugin does not provide interface type information, this function will return ETH_NOT_SUPPORTED.
The index is zero-based, which means it can range from zero up to one less than the number of available interfaces.