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