Deleted Added
full compact
snmpd.h (133212) snmpd.h (216294)
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Begemot: bsnmp/snmpd/snmpd.h,v 1.24 2004/08/06 08:47:13 brandt Exp $
30 *
31 * Private SNMPd data and functions.
32 */
1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Begemot: bsnmp/snmpd/snmpd.h,v 1.24 2004/08/06 08:47:13 brandt Exp $
30 *
31 * Private SNMPd data and functions.
32 */
33#include <sys/queue.h>
33
34#ifdef USE_LIBBEGEMOT
35#include <rpoll.h>
36#else
37#include <isc/eventlib.h>
38#endif
39
40#define PATH_SYSCONFIG "/etc:/usr/etc:/usr/local/etc"
41

--- 200 unchanged lines hidden (view full) ---

242
243 /* version enable flags */
244 uint32_t version_enable;
245};
246extern struct snmpd snmpd;
247
248#define VERS_ENABLE_V1 0x00000001
249#define VERS_ENABLE_V2C 0x00000002
34#ifdef USE_LIBBEGEMOT
35#include <rpoll.h>
36#else
37#include <isc/eventlib.h>
38#endif
39
40#define PATH_SYSCONFIG "/etc:/usr/etc:/usr/local/etc"
41

--- 200 unchanged lines hidden (view full) ---

242
243 /* version enable flags */
244 uint32_t version_enable;
245};
246extern struct snmpd snmpd;
247
248#define VERS_ENABLE_V1 0x00000001
249#define VERS_ENABLE_V2C 0x00000002
250#define VERS_ENABLE_ALL 0x00000003
250#define VERS_ENABLE_V3 0x00000004
251#define VERS_ENABLE_ALL (VERS_ENABLE_V1 | VERS_ENABLE_V2C | VERS_ENABLE_V3)
251
252/*
253 * The debug group
254 */
255struct debug {
256 u_int dump_pdus;
257 u_int logpri;
258 u_int evdebug;

--- 16 unchanged lines hidden (view full) ---

275 u_int32_t inBadPduTypes;
276 u_int32_t inTooLong;
277 u_int32_t noTxbuf;
278 u_int32_t noRxbuf;
279};
280extern struct snmpd_stats snmpd_stats;
281
282/*
252
253/*
254 * The debug group
255 */
256struct debug {
257 u_int dump_pdus;
258 u_int logpri;
259 u_int evdebug;

--- 16 unchanged lines hidden (view full) ---

276 u_int32_t inBadPduTypes;
277 u_int32_t inTooLong;
278 u_int32_t noTxbuf;
279 u_int32_t noRxbuf;
280};
281extern struct snmpd_stats snmpd_stats;
282
283/*
284 * SNMPd Engine
285 */
286extern struct snmp_engine snmpd_engine;
287
288/*
283 * OR Table
284 */
285struct objres {
286 TAILQ_ENTRY(objres) link;
287 u_int index;
288 struct asn_oid oid; /* the resource OID */
289 char descr[256];
290 u_int32_t uptime;

--- 26 unchanged lines hidden (view full) ---

317extern struct trapsink_list trapsink_list;
318
319extern const char *syspath;
320
321/* snmpSerialNo */
322extern int32_t snmp_serial_no;
323
324int init_actvals(void);
289 * OR Table
290 */
291struct objres {
292 TAILQ_ENTRY(objres) link;
293 u_int index;
294 struct asn_oid oid; /* the resource OID */
295 char descr[256];
296 u_int32_t uptime;

--- 26 unchanged lines hidden (view full) ---

323extern struct trapsink_list trapsink_list;
324
325extern const char *syspath;
326
327/* snmpSerialNo */
328extern int32_t snmp_serial_no;
329
330int init_actvals(void);
331
332extern char engine_file[];
333int init_snmpd_engine(void);
334int set_snmpd_engine(void);
335
325int read_config(const char *, struct lmodule *);
326int define_macro(const char *name, const char *value);
327
328#define LOG_ASN1_ERRORS 0x10000000
329#define LOG_SNMP_ERRORS 0x20000000
336int read_config(const char *, struct lmodule *);
337int define_macro(const char *name, const char *value);
338
339#define LOG_ASN1_ERRORS 0x10000000
340#define LOG_SNMP_ERRORS 0x20000000