squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
include
snmp_impl.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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
9
#ifndef SQUID_SNMP_IMPL_H
10
#define SQUID_SNMP_IMPL_H
11
12
#include "
asn1.h
"
13
14
/*
15
* Definitions for SNMP (RFC 1067) implementation.
16
*
17
*
18
*/
19
/***********************************************************
20
Copyright 1988, 1989 by Carnegie Mellon University
21
22
All Rights Reserved
23
24
Permission to use, copy, modify, and distribute this software and its
25
documentation for any purpose and without fee is hereby granted,
26
provided that the above copyright notice appear in all copies and that
27
both that copyright notice and this permission notice appear in
28
supporting documentation, and that the name of CMU not be
29
used in advertising or publicity pertaining to distribution of the
30
software without specific, written prior permission.
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
41
#define SID_MAX_LEN 64
42
43
#define READ 1
44
#define WRITE 0
45
46
#define SNMP_RESERVE1 0
47
#define SNMP_RESERVE2 1
48
#define SNMP_COMMIT 2
49
#define SNMP_FREE 3
50
51
#define RONLY 0xAAAA
/* read access for everyone */
52
#define RWRITE 0xAABA
/* add write access for community private */
53
#define NOACCESS 0x0000
/* no access for anybody */
54
55
struct
trapVar
{
56
oid
*
varName
;
57
int
varNameLen
;
58
u_char
varType
;
59
int
varLen
;
60
u_char *
varVal
;
61
struct
trapVar
*
next
;
62
};
63
64
#endif
/* SQUID_SNMP_IMPL_H */
65
asn1.h
oid
u_int oid
Definition:
asn1.h:42
trapVar
Definition:
snmp_impl.h:55
trapVar::varName
oid * varName
Definition:
snmp_impl.h:56
trapVar::varVal
u_char * varVal
Definition:
snmp_impl.h:60
trapVar::varType
u_char varType
Definition:
snmp_impl.h:58
trapVar::varNameLen
int varNameLen
Definition:
snmp_impl.h:57
trapVar::varLen
int varLen
Definition:
snmp_impl.h:59
trapVar::next
struct trapVar * next
Definition:
snmp_impl.h:61
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive