Squid Web Cache
master
Loading...
Searching...
No Matches
snmp_client.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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_INCLUDE_SNMP_CLIENT_H
10
#define SQUID_INCLUDE_SNMP_CLIENT_H
11
12
/***********************************************************
13
Copyright 1988, 1989 by Carnegie Mellon University
14
15
All Rights Reserved
16
17
Permission to use, copy, modify, and distribute this software and its
18
documentation for any purpose and without fee is hereby granted,
19
provided that the above copyright notice appear in all copies and that
20
both that copyright notice and this permission notice appear in
21
supporting documentation, and that the name of CMU not be
22
used in advertising or publicity pertaining to distribution of the
23
software without specific, written prior permission.
24
25
CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
26
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
27
CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
28
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
29
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
30
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
31
SOFTWARE.
32
******************************************************************/
33
struct
synch_state
{
34
int
waiting
;
35
int
status
;
36
/* status codes */
37
#define STAT_SUCCESS 0
38
#define STAT_ERROR 1
39
#define STAT_TIMEOUT 2
40
int
reqid
;
41
struct
snmp_pdu
*
pdu
;
42
};
43
44
#ifdef __cplusplus
45
extern
"C"
{
46
#endif
47
48
extern
struct
synch_state
snmp_synch_state
;
49
50
/* Synchronize Input with Agent */
51
int
snmp_synch_input
(
int
,
struct
snmp_session
*,
int
,
52
struct
snmp_pdu
*,
void
*);
53
54
/* Synchronize Response with Agent */
55
int
snmp_synch_response
(
struct
snmp_session
*,
struct
snmp_pdu
*,
56
struct
snmp_pdu
**);
57
58
/* Synchronize Setup */
59
void
snmp_synch_setup
(
struct
snmp_session
*);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* SQUID_INCLUDE_SNMP_CLIENT_H */
66
snmp_synch_response
int snmp_synch_response(struct snmp_session *, struct snmp_pdu *, struct snmp_pdu **)
snmp_synch_input
int snmp_synch_input(int, struct snmp_session *, int, struct snmp_pdu *, void *)
snmp_synch_state
struct synch_state snmp_synch_state
snmp_synch_setup
void snmp_synch_setup(struct snmp_session *)
snmp_pdu
Definition
snmp_pdu.h:50
snmp_session
Definition
snmp_session.h:36
synch_state
Definition
snmp_client.h:33
synch_state::reqid
int reqid
Definition
snmp_client.h:40
synch_state::waiting
int waiting
Definition
snmp_client.h:34
synch_state::pdu
struct snmp_pdu * pdu
Definition
snmp_client.h:41
synch_state::status
int status
Definition
snmp_client.h:35
squid
include
snmp_client.h
Generated by
1.9.8