@CHIP-RTOS C Library V2.00 - TCP/IP API
AddDefaultGateway
Add the default gateway. int AddDefaultGateway ( IP_INTERFACE which_interface,
const unsigned long far *Gateway,
int *error ); Parameters
which_interface
- Enumeration type:
- II_ETHERNET = 0: Ethernet
- II_PPP_SERVER = 1: PPP server
- II_PPP_CLIENT = 2: PPP client
Gateway
- Pointer to gateway IP address.
error
- Output parameter: Failure
code, 0 on success.
Return Value
- 0: success
-1: See reported error
code.
Comments
- If this function is used, the
gateway
entry in the CHIP.INI becomes invalidated, but
unchanged. If the PPP server or PPP client is specified by the
which_interface
parameter, then the gateway is set
to the remote peer IP address.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Related Topics
-
- IP Gateway CHIP.INI Configuration
-
- PPP server Gateway CHIP.INI Configuration
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|