RtnSetDefaultGateway

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 RTX64 control panel. 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 Value

0 (zero) if the function succeeds, a positive value if the function fails to set the default gateway

Requirements

Minimum Supported Version RTX64 2013
Header rtnapi.h
Library RtTcpip.lib