]> git.ipfire.org Git - thirdparty/squid.git/blame - include/snmp_impl.h
SourceFormat Enforcement
[thirdparty/squid.git] / include / snmp_impl.h
CommitLineData
5c193dec
AJ
1/*
2 * Copyright (C) 1996-2014 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
b5638623 9#ifndef SQUID_SNMP_IMPL_H
10#define SQUID_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
24Permission to use, copy, modify, and distribute this software and its
25documentation for any purpose and without fee is hereby granted,
8bde32ea 26provided that the above copyright notice appear in all copies and that
c5dd4956 27both that copyright notice and this permission notice appear in
8bde32ea 28supporting documentation, and that the name of CMU not be
29used in advertising or publicity pertaining to distribution of the
c5dd4956 30software without specific, written prior permission.
8bde32ea 31
32CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
33ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
34CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
35ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
36WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
37ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
38SOFTWARE.
39******************************************************************/
40
54f642bf 41#if 0
42#if (defined vax) || (defined (mips))
43/*
44 * This is a fairly bogus thing to do, but there seems to be no better way for
45 * compilers that don't understand void pointers.
46 */
47#ifndef void
48#define void char
49#endif
50#endif
51#endif
8bde32ea 52
f53969cc 53#define SID_MAX_LEN 64
8bde32ea 54
f53969cc
SM
55#define READ 1
56#define WRITE 0
8bde32ea 57
54f642bf 58#define SNMP_RESERVE1 0
59#define SNMP_RESERVE2 1
60#define SNMP_COMMIT 2
61#define SNMP_FREE 3
8bde32ea 62
f53969cc
SM
63#define RONLY 0xAAAA /* read access for everyone */
64#define RWRITE 0xAABA /* add write access for community private */
65#define NOACCESS 0x0000 /* no access for anybody */
8bde32ea 66
54f642bf 67struct trapVar {
43d4303e 68 oid *varName;
69 int varNameLen;
70 u_char varType;
71 int varLen;
72 u_char *varVal;
73 struct trapVar *next;
54f642bf 74};
8bde32ea 75
b5638623 76#endif /* SQUID_SNMP_IMPL_H */
f53969cc 77