squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
include
snmp_session.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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
9
#ifndef SQUID_SNMP_SESSION_H
10
#define SQUID_SNMP_SESSION_H
11
12
/**********************************************************************
13
*
14
* Copyright 1997 by Carnegie Mellon University
15
*
16
* All Rights Reserved
17
*
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.
25
*
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.
33
*
34
**********************************************************************/
35
36
struct
snmp_session
{
37
int
Version
;
/* SNMP Version for this session */
38
39
u_char *
community
;
/* community for outgoing requests. */
40
int
community_len
;
/* Length of community name. */
41
int
retries
;
/* Number of retries before timeout. */
42
int
timeout
;
/* Number of uS until first timeout, then exponential backoff */
43
char
*
peername
;
/* Domain name or dotted IP address of default peer */
44
unsigned
short
remote_port
;
/* UDP port number of peer. */
45
unsigned
short
local_port
;
/* My UDP port number, 0 for default, picked randomly */
46
};
47
48
#define RECEIVED_MESSAGE 1
49
#define TIMED_OUT 2
50
51
#endif
/* SQUID_SNMP_SESSION_H */
52
snmp_session
Definition:
snmp_session.h:36
snmp_session::Version
int Version
Definition:
snmp_session.h:37
snmp_session::retries
int retries
Definition:
snmp_session.h:41
snmp_session::peername
char * peername
Definition:
snmp_session.h:43
snmp_session::local_port
unsigned short local_port
Definition:
snmp_session.h:45
snmp_session::timeout
int timeout
Definition:
snmp_session.h:42
snmp_session::community_len
int community_len
Definition:
snmp_session.h:40
snmp_session::remote_port
unsigned short remote_port
Definition:
snmp_session.h:44
snmp_session::community
u_char * community
Definition:
snmp_session.h:39
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive