@CHIP-RTOS C Library V2.06 - TCP/IP API
AddStaticRoute
Add a route for a interface. int AddStaticRoute ( IP_INTERFACE which_interface,
const Route_Entry far *route,
int *error ); Parameters
which_interface
- Enumeration type:
- II_ETHERNET = 0: Ethernet
- II_PPP_SERVER = 1: PPP server
- II_PPP_CLIENT = 2: PPP client
route
- Pointer to user Route_Entry
structure
error
- Output parameter: Failure
code, 0 on success.
Return Value
- 0: success
-1: See reported error
code.
Comments
- The Route_Entry
structure is defined in tcpipapi.h:
Refer to this RTOS API function's
documentation
for more details.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.10 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|