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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors