#include <address.h>
Inheritance diagram for IpAddress:
Public Member Functions | |
| IpAddress () | |
| Construct an empty invalid IP address. | |
| IpAddress (const char *inaddr) | |
| Construct an IP address from a string. | |
| IpAddress (const IpAddress &ipaddr) | |
| Construct an IP address from another IP address. | |
| IpAddress (const GenAddress &genaddr) | |
| Construct an IP address from a GenAddress. | |
| ~IpAddress () | |
| Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Map other SnmpSyntax objects to IpAddress. | |
| IpAddress & | operator= (const IpAddress &ipaddress) |
| Overloaded assignment operator for other IP addresses. | |
| IpAddress & | operator= (const char *inaddr) |
| Overloaded assignment operator for strings. | |
| SnmpSyntax * | clone () const |
| Clone this object. | |
| char * | friendly_name (int &status) |
| Return the friendly name. | |
| virtual const char * | get_printable () const |
| Get a printable ASCII value of the address. | |
| virtual | operator const char * () const |
| Overloaded operator for streaming output. | |
| void | mask (const IpAddress &ipaddr) |
| Logically AND the address with the param. | |
| virtual int | get_length () const |
| Get the length of the binary address (accessible through operator[]). | |
| virtual addr_type | get_type () const |
| Return the type of the address. | |
| virtual SmiUINT32 | get_syntax () const |
| Return the syntax. | |
| virtual int | get_asn1_length () const |
| Return the space needed for serialization. | |
| virtual version_type | get_ip_version () const |
| Return the IP version of the address. | |
| virtual int | map_to_ipv6 () |
| Map a IPv4 address to a IPv6 address. | |
| void | clear () |
| Reset the object. | |
Protected Member Functions | |
| virtual bool | parse_address (const char *inaddr) |
| virtual void | format_output () const |
| int | parse_dotted_ipstring (const char *inaddr) |
| int | parse_coloned_ipstring (const char *inaddr) |
| int | addr_to_friendly () |
Protected Attributes | |
| char | output_buffer [OUTBUFF] |
| char | iv_friendly_name [MAX_FRIENDLY_NAME] |
| int | iv_friendly_name_status |
| version_type | ip_version |
|
|
Construct an empty invalid IP address.
|
|
|
Construct an IP address from a string. The following formats can be used:
|
|
|
Construct an IP address from another IP address.
|
|
|
Construct an IP address from a GenAddress.
|
|
|
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
|
|
|
|
|
|
Reset the object.
Reimplemented from Address. Reimplemented in UdpAddress. |
|
|
Clone this object.
Implements SnmpSyntax. Reimplemented in UdpAddress. |
|
|
Implements Address. Reimplemented in UdpAddress. |
|
|
Return the friendly name. Does a reverse DNS lookup for the IP address.
|
|
|
Return the space needed for serialization.
Implements Address. Reimplemented in UdpAddress. |
|
|
Return the IP version of the address.
|
|
|
Get the length of the binary address (accessible through operator[]).
Implements Address. Reimplemented in UdpAddress. |
|
|
Get a printable ASCII value of the address.
Implements SnmpSyntax. Reimplemented in UdpAddress. |
|
|
Return the syntax.
Implements SnmpSyntax. Reimplemented in UdpAddress. Definition at line 421 of file address.h. References SmiUINT32, and sNMP_SYNTAX_IPADDR. |
|
|
Return the type of the address.
Implements Address. Reimplemented in UdpAddress. |
|
|
Map a IPv4 address to a IPv6 address.
Reimplemented in UdpAddress. |
|
|
Logically AND the address with the param.
|
|
|
Overloaded operator for streaming output.
Implements Address. Reimplemented in UdpAddress. |
|
|
Overloaded assignment operator for strings.
Reimplemented in UdpAddress. |
|
|
Overloaded assignment operator for other IP addresses.
Reimplemented in UdpAddress. |
|
|
Map other SnmpSyntax objects to IpAddress.
Implements Address. Reimplemented in UdpAddress. |
|
|
Implements Address. Reimplemented in UdpAddress. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in UdpAddress. |
1.3.2