summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authormrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-20 04:18:57 +0000
committermrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-20 04:18:57 +0000
commita513e2032f2da30392becc11a246e994528fa2e3 (patch)
tree9a212c984a702aabf7a3fe7bdd0e32a5351e00c5 /ASNMP
parent8cb9a57661ad65b745dab1f9bcd1cc20736f3e59 (diff)
downloadATCD-a513e2032f2da30392becc11a246e994528fa2e3.tar.gz
Two changes to class IpAddress
Added to_octet() Renamed is_arpa() to is_private()
Diffstat (limited to 'ASNMP')
-rw-r--r--ASNMP/asnmp/address.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/ASNMP/asnmp/address.h b/ASNMP/asnmp/address.h
index f2190e7c5c7..dd1a1818f5f 100644
--- a/ASNMP/asnmp/address.h
+++ b/ASNMP/asnmp/address.h
@@ -38,6 +38,7 @@
// ACE OS Adaption layer
#include "ace/OS.h"
#include "asnmp/smival.h"
+#include "asnmp/octet.h"
//----[ enumerated types ] --------------------------------
enum address_lengths {
@@ -160,6 +161,7 @@ public:
virtual unsigned int hashFunction() const { return 0;};
// return a hash key
+
protected:
int valid_flag;
// state of constructed object (TRUE/FALSE)
@@ -239,8 +241,11 @@ public:
int is_broadcast() const;
// determine if this a broadcast address
- int is_arpanet() const;
- // determine if this is ip network 10.x.x.x
+ int is_private() const;
+ // per RFC 1597, private addresses are:: 10, 172.16, and 192.168.0
+
+ void to_octet(OctetStr& octet) const;
+ // convert address into octet string format in network byte order
protected:
char output_buffer[MAX_DISPLAY_SZ]; // output buffer
@@ -407,7 +412,7 @@ protected:
class ACE_Export NetbiosAddress : public Address
// = TITLE
// Defines the member functions for the concrete class NetbiosAddress.
- // The IBM/Microsoft address for NETBIOS, NETBEUI protocol tranport.
+ // The IBM/Microsoft address for NETBIOS, NETBEUI protocol transport.
{
public: