RtnRemoveStaticRoute

RtnRemoveStaticRoute removes a static IPv4 or IPv6 route from RtTcpIP stack’s forwarding database.

Syntax

int RtnRemoveStaticRoute(
    void *ndptr,
    const char *pTarget,
    int prefixLen,
    const char *pNextHop
);

Parameters

ndptr

Network Device Pointer. Opaque network device identifier (pointer).

pTarget

String representation of target IPv4 or IPv6 address.

prefixLen

The prefix length (length of the IP mask) for the destination route.  Must be less than or equal to 32 for IPv4 route or less than or equal to 128 for IPv6 route.

pNextHop

String representation of next-hop router (gateway) for the route. May be NULL if the route is on-link(local). If there is no next-hop router because the route is reachable directly from an interface set this value to be NULL.

Return Values

0 (zero) if the function succeeds, a non zero value if the function fails

Requirements

Header Drvutl.h
Library Rtxtcpip.lib
IntervalZero.com | Support | Give Feedback