]>
Commit | Line | Data |
---|---|---|
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 | |
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 | * | |
528b2c61 | 29 | * $Id: snmp_session.h,v 1.5 2003/01/23 00:36:48 robertc Exp $ |
54f642bf | 30 | * |
31 | **********************************************************************/ | |
32 | ||
33 | struct 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 */ |