prg_ip_address_parse()
Abstract
Initializes an IP address data structure by parsing an IP address string and/or a subnet mask string.
Syntax
prg_ip_address_parse (ip_address_str, subnet_mask_str, ip_address_ptr)
| Argument | Type | Description |
|---|---|---|
ip_address_str |
const char * |
the string to parse for the address value |
subnet_mask_str |
const char * |
the string to parse for the subnet mask value, possibly NIL |
ip_address_ptr |
PrgT_IP_Address * |
the IP address object to initialize |
Return Type
PrgT_Compcode
Indicates whether or not the string(s) were successfully parsed.
Header
prg_ip_address.h
Details
Initializes an IP address data structure by parsing an IP address string and/or a Subnet Mask string. Both strings are expected to be in dotted notation (“xxx.xxx.xxx.xxx”), represent a full 32-bit integral value, or be one of the special strings: “Auto Assigned”, “Unnumbered”, or “Class Based”). If the subnet mask string is NIL, then a class based subnet mask will be chosen unless a subnet mask prefix length is found after a slash in the address string. For example, “172.16.100.16/26”.