Parse and resolve a specified subnet string into the appropriate internal representation.

Synopsis

Declared in <netbase.h>

CSubNet
LookupSubNet(std::string const& subnet_str);

Return Value

a CSubNet object (that may or may not be valid).

Parameters

Name

Description

subnet_str [in]

A string representation of a subnet of the form network address [ "/", ( CIDR‐style suffix | netmask ) ] e.g. "2001:db8::/32", "192.0.2.0/255.255.255.0" or "8.8.8.8".

Created with MrDocs