IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int SetStaticRoute ( void *  InterfaceHandle,
unsigned long  destIPAddress,
unsigned long  destNetmask,
unsigned long  gateway,
int  hops 
)

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] InterfaceHandle Device handle to identify the interface.
[in] destIPAddress The IP address to add the route for
[in] destNetmask The netmask for the route
[in] gateway IP address of the gateway for this route
[in] hops Number of routers between this host and route
Returns:
0 on success
else failure code
Note:
The device handle pointer (InterfaceHandle) is retrievable by Dev_Find_Iface_By_Name().
A list of all installed device drivers is retrievable by Dev_Get_IfaceEntries().
Currently only route definitions based on the IPv4 protocol are supported.
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
RemoveStaticRoute(), SetDefaultGateway()





Top of page | Main page

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