tfFinishOpenInterface
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfFinishOpenInterface | ( |
| ttUserInterface interfaceHandle, | |
| ttUserIpAddress ipAddress, | |
| ttUserIpAddress netMask | |
| ); |
Function Description
Finish opening an interface that the user had started to open with the TM_DEV_IP_USER_BOOT flag. That flag caused the Treck stack not to store the IP address/netmask in the routing table, leaving the interface in a half configured state. tfFinishOpenInterface() will attempt to insert the IP address/netmask into the routing table.
Parameters
- interfaceHandle
- The device entry. This is returnedby tfAddInterface().
- ipAddress
- The IP address for this interface at multihome index 0.
- netMask
- The netmask for this device (subnet or supernet) at multihome index 0.
Returns
- TM_ENOERROR
- Success.
- TM_EADDRNOTAVAIL
- Attempt to configure the device with a broadcast address.
- TM_ENOBUFS
- Not enough memory to complete the operation.
- TM_EINVAL
- Bad parameter, such as an invalid interfaceId.
- TM_EALREADY
- IP address/netmask is already in the routing table.
- TM_EPERM
- User did not set the TM_DEV_IP_USER_BOOT flag when calling tfOpenInterface().