prg_ip_address_type_set()
Abstract
Returns a new IP address based on the information in the passed IP address.
Syntax
prg_ip_address_type_set (ip_address, address_type)
| Argument | Type | Description |
|---|---|---|
ip_address |
PrgT_IP_Address |
the IP address which provides the basis for the new address |
address_type |
PrgT_IP_Address_Type |
the type of new IP address desired (one of the values in Table 5 IP Address Package Symbolic Constants) |
Return Type
PrgT_IP_Address
The IP address of the specified type which corresponds to the given IP address.
Header
prg_ip_address.h
Details
Returns a new IP address based on the information in the passed IP address, but using the specified address type. The address value is changed as necessary (for instance, by setting unmasked portions to all zeros or all ones, setting the entire value to zero, or setting the value to some valid host value).