1 karl 1.9 //%2004////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 karl 1.9 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.7 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.9 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 mike 1.2 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
11 kumpf 1.4 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
14 mike 1.2 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
|
17 kumpf 1.4 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
18 mike 1.2 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
20 kumpf 1.4 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
23 mike 1.2 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
29 //
|
30 kumpf 1.6 // Modified By: Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
|
31 mike 1.2 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #include <iostream>
35 #include <Pegasus/Common/Config.h>
|
36 kumpf 1.5 #include <Pegasus/Common/Array.h>
|
37 mike 1.2 #include <Pegasus/Common/String.h>
38
39 PEGASUS_NAMESPACE_BEGIN
40
41 typedef struct _trapHeader
42 {
43 char destination[255];
44 char snmpType[10];
45 char enterprise[255];
46 char trapOid[255];
47 int variable_packets;
48 } trapHeader;
49
50 typedef struct _trapData
51 {
52 char vbOid[255];
53 char vbType[255];
54 char vbValue[512];
55 } trapData;
56
57 class snmpDeliverTrap
58 mike 1.2 {
59 public:
60
61 snmpDeliverTrap() { }
62
63 virtual ~snmpDeliverTrap() { }
64
65 virtual void deliverTrap(
66 const String& trapOid,
|
67 kumpf 1.6 const String& securityName,
68 const String& targetHost,
69 const Uint16& targetHostFormat,
70 const String& otherTargetHostFormat,
71 const Uint32& portNumber,
72 const Uint16& snmpVersion,
73 const String& engineID,
|
74 kumpf 1.8 const Array<String>& vbOids,
75 const Array<String>& vbTypes,
76 const Array<String>& vbValues) = 0;
|
77 mike 1.2 };
78
79 PEGASUS_NAMESPACE_END
|