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