eth32cfg_plugin_interface_address

int eth32cfg_plugin_interface_address(eth32cfgiflist handle, int index, 
                               eth32cfg_ip_t *ip, eth32cfg_ip_t *netmask);

Summary

This function retrieves IP address information about one of the interfaces in the network interface list that was previously obtained by calling eth32cfg_plugin_interface_list.

Parameters

  • handle - The value returned by eth32cfg_plugin_interface_list

  • index - The index of the interface within the list

  • ip - Pointer to an eth32cfg_ip_t structure which will receive the IP address of the specified network interface

  • netmask - Pointer to an eth32cfg_ip_t structure which will receive the network mask of the specified network interface

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

Remarks

The index is zero-based, which means it can range from zero up to one less than the number of available interfaces.

See Also

eth32cfg_plugin_interface_list, eth32cfg_plugin_interface_list_free