diff options
author | mrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-04 23:42:06 +0000 |
---|---|---|
committer | mrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-04 23:42:06 +0000 |
commit | 6df800e2829643f75be22926d520d5d76ecd0ce0 (patch) | |
tree | 78b96f6719d2eb22430eb176f2aa8c07efde1ca7 /ASNMP | |
parent | f34a67a68bfac99a8f4a783de309ce923bad61a1 (diff) | |
download | ATCD-6df800e2829643f75be22926d520d5d76ecd0ce0.tar.gz |
agent work updates
Diffstat (limited to 'ASNMP')
-rw-r--r-- | ASNMP/asnmp/wpdu.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ASNMP/asnmp/wpdu.h b/ASNMP/asnmp/wpdu.h index 6a3eeb75876..2d4df6a2664 100644 --- a/ASNMP/asnmp/wpdu.h +++ b/ASNMP/asnmp/wpdu.h @@ -37,9 +37,9 @@ public: wpdu(const Pdu& pdu, const UdpTarget& target); // construct CMU data from HP SNMP++ objects - wpdu(const iovec& buffer); // construct HP SNMP++ objects from raw buffer via CMU SNMP datatypes + wpdu(); // same as using iovec? ~wpdu(); @@ -49,9 +49,12 @@ public: const iovec& get_buffer() const; // return raw data stream via CMU code - int get_pdu(Pdu& pdu, snmp_version& version) const; + int get_pdu(Pdu& pdu, snmp_version& version); // return HP SNMP++ pdu + const unsigned char *get_community() const; + // return community strptr + private: int convert_vb_to_smival( Vb &tempvb, SmiVALUE *smival ); int load_vbs(snmp_pdu *raw_pdu, const Pdu& pdu); @@ -68,6 +71,9 @@ private: snmp_version version_; // snmp version + + unsigned char community_name[MAX_COMM_STR_LEN]; + unsigned long comm_len; // = MAX_COMM_STR_LEN; }; #endif // WPDU_H_ |