IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int AddStaticRoute ( IP_INTERFACE  iface_id,
const Route_Entry route,
int *  error 
)

Add a route

This function is used to add a route for the interface. It allows packets for a different network to be routed to the interface.

Parameters:
[in] iface_id Specifies the device entry of the route.
[in] route Pointer to user Route_Entry structure.
[out] error Error code on failure, 0 on success.
Returns:
-1: Error, see reported error code
0: Success
Since:
SC2x3 V1.00 - CLIB V1.00
Deprecated:
This legacy function can be replaced by SetStaticRoute() and is only left for backward compatibility.
See also:
RemoveDefaultGateway()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:39 2017 by Doxygen 1.6.1