]> git.ipfire.org Git - thirdparty/squid.git/blame - include/snmp_msg.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / include / snmp_msg.h
CommitLineData
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
b5638623 9#ifndef SQUID_SNMP_MSG_H
10#define SQUID_SNMP_MSG_H
54f642bf 11
12/**********************************************************************
13 *
14 * Copyright 1997 by Carnegie Mellon University
c5dd4956 15 *
54f642bf 16 * All Rights Reserved
c5dd4956 17 *
54f642bf 18 * Permission to use, copy, modify, and distribute this software and its
19 * documentation for any purpose and without fee is hereby granted,
20 * provided that the above copyright notice appear in all copies and that
21 * both that copyright notice and this permission notice appear in
22 * supporting documentation, and that the name of CMU not be
23 * used in advertising or publicity pertaining to distribution of the
24 * software without specific, written prior permission.
c5dd4956 25 *
54f642bf 26 * CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
27 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
28 * CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
29 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
30 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
31 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
32 * SOFTWARE.
c5dd4956 33 *
54f642bf 34 * Author: Ryan Troll <ryan+@andrew.cmu.edu>
c5dd4956 35 *
54f642bf 36 **********************************************************************/
37
3d41e53a
FC
38#include "snmp_pdu.h"
39
f53969cc
SM
40#define SNMP_VERSION_1 0 /* RFC 1157 */
41#define SNMP_VERSION_2 1 /* RFC 1901 */
54f642bf 42
43#ifdef __cplusplus
e1381638 44extern "C" {
54f642bf 45#endif
46
f53969cc
SM
47u_char *snmp_msg_Encode(u_char *, int *, u_char *, int, int, struct snmp_pdu *);
48u_char *snmp_msg_Decode(u_char *, int *, u_char *, int *, int *, struct snmp_pdu *);
54f642bf 49
50#ifdef __cplusplus
51}
54f642bf 52
43d4303e 53#endif
b5638623 54
f53969cc
SM
55#endif /* SQUID_SNMP_MSG_H */
56