Back to Sealevel      

int CEthernet_recover_module ( ceth_device *  device  ) 

Use this function to recover a device not on your subnet. This function is designed to re-enable DHCP on a device that has been removed from your subnet by a SetIPAddress command. Since you can no longer send commands to a device that is no longer on your subnet, it is helpful to be able to re-enable DHCP so that you may once again. NOTE: This function requires use of the MAC address and is therefore a privileged (RAW Socket) function. You may alternatively hard code the device's MAC address into the ceth_device struct provided to this function.

Parameters:
[in] *device Pointer to the device you would like to recover.
Returns:
int Error code.
Return values:
0 Success.
-1 No device specified.
-2 MAC address unknown.
-3 DHCP is already enabled.
-4 Failed to find the device. Recovery failed.
 
 
Generated on 3 Jun 2011.