]>
Commit | Line | Data |
---|---|---|
5c193dec | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
5c193dec AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
ff9d9458 FC |
9 | #ifndef SQUID_INCLUDE_SNMP_IMPL_H |
10 | #define SQUID_INCLUDE_SNMP_IMPL_H | |
54f642bf | 11 | |
e1f7507e AJ |
12 | #include "asn1.h" |
13 | ||
8bde32ea | 14 | /* |
15 | * Definitions for SNMP (RFC 1067) implementation. | |
16 | * | |
17 | * | |
18 | */ | |
19 | /*********************************************************** | |
f53969cc | 20 | Copyright 1988, 1989 by Carnegie Mellon University |
8bde32ea | 21 | |
22 | All Rights Reserved | |
23 | ||
c5dd4956 AJ |
24 | Permission to use, copy, modify, and distribute this software and its |
25 | documentation for any purpose and without fee is hereby granted, | |
8bde32ea | 26 | provided that the above copyright notice appear in all copies and that |
c5dd4956 | 27 | both that copyright notice and this permission notice appear in |
8bde32ea | 28 | supporting documentation, and that the name of CMU not be |
29 | used in advertising or publicity pertaining to distribution of the | |
c5dd4956 | 30 | software without specific, written prior permission. |
8bde32ea | 31 | |
32 | CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
33 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | |
34 | CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | |
35 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
36 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
37 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
38 | SOFTWARE. | |
39 | ******************************************************************/ | |
40 | ||
f53969cc | 41 | #define SID_MAX_LEN 64 |
8bde32ea | 42 | |
54f642bf | 43 | #define SNMP_RESERVE1 0 |
44 | #define SNMP_RESERVE2 1 | |
45 | #define SNMP_COMMIT 2 | |
46 | #define SNMP_FREE 3 | |
8bde32ea | 47 | |
f53969cc SM |
48 | #define RONLY 0xAAAA /* read access for everyone */ |
49 | #define RWRITE 0xAABA /* add write access for community private */ | |
50 | #define NOACCESS 0x0000 /* no access for anybody */ | |
8bde32ea | 51 | |
54f642bf | 52 | struct trapVar { |
43d4303e | 53 | oid *varName; |
54 | int varNameLen; | |
55 | u_char varType; | |
56 | int varLen; | |
57 | u_char *varVal; | |
58 | struct trapVar *next; | |
54f642bf | 59 | }; |
8bde32ea | 60 | |
ff9d9458 | 61 | #endif /* SQUID_INCLUDE_SNMP_IMPL_H */ |
f53969cc | 62 |