IsIPAddressWithinPrefix (open)

Returns whether an IP adress lies within a network prefix

Syntax

LOADLIB "wh::internet/tcpip.whlib";

BOOLEAN FUNCTION IsIPAddressWithinPrefix(STRING ip, STRING networkprefix)

Parameters

STRING ip

IP address to check

STRING networkprefix

Network prefix

Return value

BOOLEAN

TRUE if the IP address lies within the prefix