tfStartBootRelayAgent
Table of Contents >> Optional Protocols >> BOOTP Relay Agent
| #include <trsocket.h> |
| int tfStartBootRelayAgent | ( |
| ttUserIpAddress ipAddress, | |
| ttUserInterface interfaceHandle, | |
| unsigned char multiHomeIndex | |
| ); |
Function Description
This function is used to start the BOOTP relay agent to relay both BOOTP and DHCP requests to the specified remote server IP address from the specified interface handle, multihome index.
Parameters
- ipAddress
- The IP address of the remote server. A limited broadcast address can also be specified (0xFFFFFFFF or 255.255.255.255).
- interfaceHandle
- The device entry as returned by tfAddInterface() through which to relay BOOTP and DHCP client requests.
- multiHomeIndex
- The multihome index of the interface through which to relay BOOTP and DHCP client requests.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Invalid 'interfaceHandle', 'multiHomeIndex', or 'ipAddress'.
- TM_EMFILE
- Not enough sockets available to open the BOOTP relay agent UDP socket.
- TM_ADDRINUSE
- Another socket is already bound to the BOOTP relay agent UDP port.
- TM_EALREADY
- tfStartBootRelayAgent() has already been called successfully.
Table of Contents >> Optional Protocols >> BOOTP Relay Agent