]> git.ipfire.org Git - thirdparty/squid.git/blame - include/snmp_session.h
Cleanup: zap CVS Id tags
[thirdparty/squid.git] / include / snmp_session.h
CommitLineData
54f642bf 1/* -*- c++ -*- */
b5638623 2#ifndef SQUID_SNMP_SESSION_H
3#define SQUID_SNMP_SESSION_H
54f642bf 4
e1f7507e
AJ
5#include "config.h"
6
54f642bf 7/**********************************************************************
8 *
9 * Copyright 1997 by Carnegie Mellon University
c5dd4956 10 *
54f642bf 11 * All Rights Reserved
c5dd4956 12 *
54f642bf 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.
c5dd4956 20 *
54f642bf 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.
c5dd4956 28 *
262a0e14 29 * $Id$
c5dd4956 30 *
54f642bf 31 **********************************************************************/
32
33struct snmp_session {
43d4303e 34 int Version; /* SNMP Version for this session */
54f642bf 35
43d4303e 36 u_char *community; /* community for outgoing requests. */
37 int community_len; /* Length of community name. */
38 int retries; /* Number of retries before timeout. */
39 int timeout; /* Number of uS until first timeout, then exponential backoff */
40 char *peername; /* Domain name or dotted IP address of default peer */
41 u_short remote_port; /* UDP port number of peer. */
42 u_short local_port; /* My UDP port number, 0 for default, picked randomly */
54f642bf 43};
44
45#define RECEIVED_MESSAGE 1
46#define TIMED_OUT 2
47
b5638623 48#endif /* SQUID_SNMP_SESSION_H */