INtime SDK Help
lncNetRoute4Add

Adds an IPv4 route to the node’s network. There is no check whether the new route already exists.

DWORD lncNetRoute4Add( 
LPCTSTR szNode,
LPCSTR szRoute,
LPCTSTR szMask,
LPCTSTR szGateway);

Parameters

szNode
(in) the name of the local node.
szRoute
(in) the IPv4 address of the route.
szMask
(in) the IPv4 net mask for the route.
szGateway
(in) the IPv4 address of the gateway for this route.

Return values

Zero for success or an error code on failure.

Errors

LNCE_BADVAL
at least one of the parameters is not valid
LNCE_READERR
the configuration file cannot be read

Requirements

Versions Defined in Include Link to
INtime 5.2 intime/nt/include/lnc.h lnc.h lnc.lib
See Also

LNC