|
RtnSetDefaultGateway sets the gateway address (in the stack) for an instance of the driver. RtnSetDefaultGateway is normally called in the stack configuration routine to notify the stack of the gateway address of an instance of the network device. The gateway address may be set in the INI file. This function supports IPv4 type addresses only.
Syntax
int RtnSetDefaultGateway( void *ndptr, unsigned long Gateway );
Parameters
ndptr
Network Device Pointer. Opaque network device identifier (pointer).
Gateway
Address of Gateway in network byte order
Return Values
0 (zero) if the function succeeds, a positive value if the function fails to set the default gateway
Requirements
Header | Drvutl.h |
Library | Rtxtcpip.lib |