| 1 |
Wed Jan 4 22:50:09 UTC 2006 J.T. Conklin <[email protected]> |
| 2 |
|
| 3 |
* ChangeLog: |
| 4 |
|
| 5 |
Untabify. |
| 6 |
Delete-trailing-whitespace. |
| 7 |
|
| 8 |
Added "Local Variables" section defining "add-log-time-format" |
| 9 |
to a really ugly lambda expression that formats changelog |
| 10 |
timestamps in UTC and works with both GNU Emacs and XEmacs. |
| 11 |
|
| 12 |
Fri May 7 11:40:25 2004 Ossama Othman <[email protected]> |
| 13 |
|
| 14 |
* pdu.cpp (agent_error_reason): |
| 15 |
|
| 16 |
Really fixed mismatched sprintf() format specifiers this time |
| 17 |
around. |
| 18 |
|
| 19 |
Thu May 6 11:13:25 2004 Ossama Othman <[email protected]> |
| 20 |
|
| 21 |
* oid.cpp (operator+=, OidToStr): |
| 22 |
* pdu.cpp (agent_error_reason): |
| 23 |
|
| 24 |
Fixed warnings regarding mismatch format specifiers and |
| 25 |
arguments to sprintf(). |
| 26 |
|
| 27 |
Thu May 6 11:05:01 2004 Ossama Othman <[email protected]> |
| 28 |
|
| 29 |
* gauge.h: |
| 30 |
|
| 31 |
Nuked trailing white space. |
| 32 |
|
| 33 |
Fri Apr 23 11:23:21 2004 Ossama Othman <[email protected]> |
| 34 |
|
| 35 |
* oid.cpp: |
| 36 |
|
| 37 |
Missed some bool return types for equality operators. |
| 38 |
|
| 39 |
Thu Apr 22 23:03:48 2004 Ossama Othman <[email protected]> |
| 40 |
|
| 41 |
* address.cpp: |
| 42 |
* address.h: |
| 43 |
* octet.cpp: |
| 44 |
* octet.h: |
| 45 |
* oid.cpp: |
| 46 |
* oid.h: |
| 47 |
* target.cpp: |
| 48 |
* target.h: |
| 49 |
* vb.cpp: |
| 50 |
* vb.h: |
| 51 |
|
| 52 |
Changed all return types for equality, relational and logical |
| 53 |
operators to "bool", as is the norm for modern C++. |
| 54 |
|
| 55 |
Fri Aug 29 07:57:05 2003 Ossama Othman <[email protected]> |
| 56 |
|
| 57 |
* octet.cpp (to_string_hex): |
| 58 |
|
| 59 |
Fixed "string literal converted to char *" warning. String |
| 60 |
literals are now considered "const" by standard C++. |
| 61 |
|
| 62 |
Tue Mar 16 16:28:14 1999 David L. Levine <[email protected]> |
| 63 |
|
| 64 |
* address.cpp, address.h, asn1.cpp, asn1.h, counter.cpp, ctr64.cpp, |
| 65 |
gauge.cpp, integer.cpp, octet.cpp, oid.cpp, pdu.cpp, sagent.cpp, |
| 66 |
snmp.cpp, target.cpp, timetick.cpp, transaction.cpp, vb.cpp, |
| 67 |
wpdu.cpp: |
| 68 |
replaced TRUE with 1, and FALSE and NULL with 0. Thanks to |
| 69 |
Achint Sandhu <[email protected]> for reporting that |
| 70 |
TRUE and FALSE weren't define on his Linux platform. |
| 71 |
|
| 72 |
* wpdu.cpp (set_trap_info): wrapped condition with () to |
| 73 |
avoid g++ warning about using result of an assignment as |
| 74 |
the condition. |
| 75 |
|
| 76 |
* ctr64.cpp: made MAX64 unsigned, to avoid warning about it |
| 77 |
being to big to be signed. |
| 78 |
|
| 79 |
Wed Jul 15 20:27:23 1998 Mike MacFaden <[email protected]> |
| 80 |
* asn1.cpp - Hien Nguyen <[email protected]> fixed these bugs: |
| 81 |
|
| 82 |
Problem: The V1 trap agent-addr field tag value is OCTET STRING |
| 83 |
instead of IPADDRESS, and the time stamp field tag value is INTEGER |
| 84 |
instead of TIME TICKS. |
| 85 |
|
| 86 |
Fix: Change cmu_snmp::build() to pass in the correct type for agent-addr |
| 87 |
and time stamp. |
| 88 |
|
| 89 |
2. Problem: The V1 trap enterprise OID is corrupted after is was set in |
| 90 |
wpdu constructor. |
| 91 |
|
| 92 |
Fix: In wpdu::set_trap_info(), the raw_pdu enterprise OID pointer was |
| 93 |
assigned to the raw data of an enterprise Oid object on the stack. |
| 94 |
Changed to perform an ACE_NEW_RETURN on the raw_pdu->enterprise and |
| 95 |
perform a memcpy to copy the OID. The allocated memory is freed in |
| 96 |
cmu_snmp::free_pdu() as currently implemented. |
| 97 |
|
| 98 |
3. The V1 trap agent-addr field is currently initialized to "0.0.0.0". |
| 99 |
I changed wpdu::set_trap_info to initialize it to the local host IP |
| 100 |
Address. |
| 101 |
|
| 102 |
4. I noticed that the memory allocation for OID in asn1.cpp using |
| 103 |
ACE_NEW consistently use (OID length * size(oid)) as the size. |
| 104 |
Shouldn't it be simply OID length ? Since there are numerous instances |
| 105 |
of this usage in asn1.cpp, I have not fixed those. If you can double |
| 106 |
check and fix these, I appreciate it. |
| 107 |
|
| 108 |
|
| 109 |
Wed Aug 20 15:11:23 1997 Mike MacFaden <[email protected]> |
| 110 |
|
| 111 |
* rebuilt Makefile using g++dep |
| 112 |
|
| 113 |
* pdu.h pdu.cpp initialization errors fixed |
| 114 |
|
| 115 |
* address.h address.cpp IpAddress::to_octet() added |
| 116 |
|
| 117 |
Fri Aug 1 19:23:52 1997 Mike MacFaden (mrm@mrm-ss20) |
| 118 |
|
| 119 |
* NOTES: This first version only tested on Solaris 2.5 |
| 120 |
|
| 121 |
* review classes for thread safety. Current thread design only |
| 122 |
allows for one thread to safely access any ASNMP object created. |
| 123 |
|
| 124 |
* run purify test of get routine no -memory leaks. |
| 125 |
|
| 126 |
* verify both shared archive/static archive types work with |
| 127 |
example programs |
| 128 |
|
| 129 |
* << Globals Changes >> |
| 130 |
|
| 131 |
* tested only archiver library version |
| 132 |
|
| 133 |
* reformat code to use one brace style. |
| 134 |
|
| 135 |
* changed all manifest constants defined as _XX to XX_ to stay out |
| 136 |
of compiler namespace |
| 137 |
|
| 138 |
* change all OS calls to use ACE_OS:: portability layer, #include |
| 139 |
<ace/OS.h> |
| 140 |
|
| 141 |
* reformat code to use one consistent brace layout and redo |
| 142 |
header using ACE |
| 143 |
|
| 144 |
* remove semicolons on member functions foo{}; - not necessary |
| 145 |
|
| 146 |
* make get() methods const member functions |
| 147 |
|
| 148 |
* removed unnecessary casts that looked like this: and revamped |
| 149 |
all memory allocations via ACE_NEW macro |
| 150 |
|
| 151 |
new_oid = (SmiLPUINT32) new unsigned long [ smival.value.oid.len |
| 152 |
|
| 153 |
To |
| 154 |
|
| 155 |
ACE_NEW(new_oid, SmiUINT32[ smival.value.oid.len]) |
| 156 |
|
| 157 |
* Collapsed default constructors with constructors to constructors |
| 158 |
with default arguments. |
| 159 |
|
| 160 |
* removed unused #include <iostream.h> |
| 161 |
|
| 162 |
* Added ACE_TRACE() to classes |
| 163 |
|
| 164 |
* change get_printable() to to_string() - there will be more java |
| 165 |
programmers in the future so this should be the first step... |
| 166 |
|
| 167 |
* removed ASYNC interface till it can be rebuilt using ACE patterns |
| 168 |
|
| 169 |
* Attempt to make interface more type strict but leaving generic |
| 170 |
interfaces as escape hatch. Example: CTarget becomes UdpTarget |
| 171 |
for UDP/IP based agents. |
| 172 |
|
| 173 |
* << Class Specific Changes >> |
| 174 |
|
| 175 |
* Oid class: |
| 176 |
- remove char * routines, simplify class |
| 177 |
- added suboid method and removed get_printable() overloads |
| 178 |
|
| 179 |
* CTarget class: |
| 180 |
- renamed to UdpTarget. Stay out of Microsoft Namespace per MSJ |
| 181 |
Article by Allen Hollub. |
| 182 |
|
| 183 |
* Varbind class: |
| 184 |
- remove generic set_value for char,int, etc. Too easy to get |
| 185 |
this wrong. Allow just types defined. |
| 186 |
- added overload for equality operator (==) |
| 187 |
- added new constructor to allow setting full vb state oid,value, exception |
| 188 |
- add to_string() |
| 189 |
|
| 190 |
* Address class: |
| 191 |
- change manifest constants to enums for address lengths, add IP V6 lens |
| 192 |
|
| 193 |
- add a netbios name class, still pretty worthless since I don't have spec |
| 194 |
in front of me yet... |
| 195 |
|
| 196 |
- rewrite resolver calls to be thread safe and cleaner by moving to two |
| 197 |
class (static) member functions: |
| 198 |
|
| 199 |
// thread safe routine to lookup ip address given hostname |
| 200 |
// return <> 0 on error |
| 201 |
static int resolve_to_addr(const char *hostname, in_addr& quad_addr); |
| 202 |
|
| 203 |
// thread safe routine to lookup name given ip address |
| 204 |
// return <> 0 on error |
| 205 |
static int resolve_to_hostname(const in_addr& quad_addr, char *hostname) |
| 206 |
|
| 207 |
* added some interrogation routines to class IpAddress: |
| 208 |
is_loopback() const; |
| 209 |
|
| 210 |
* Ctr64 class: |
| 211 |
- added constructor using long long datatype (needs to be made |
| 212 |
portable to NT |
| 213 |
|
| 214 |
* Pdu class: add to_string() |
| 215 |
|
| 216 |
* Classes added wpdu class: |
| 217 |
- a new adpater class between CMU and HP pdu, varbind data structures |
| 218 |
|
| 219 |
* transaction class: |
| 220 |
- implement get/getnext timeout and retry logic using ACE |
| 221 |
Reactor class, ACE_Time_Value |
| 222 |
|
| 223 |
Local Variables: |
| 224 |
mode: change-log |
| 225 |
add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time)) |
| 226 |
indent-tabs-mode: nil |
| 227 |
End: |