version 1.1.1.2, 2013/07/21 23:54:39
|
version 1.1.1.3, 2016/11/02 10:09:10
|
Line 25
|
Line 25
|
#include <net-snmp/agent/net-snmp-agent-includes.h> |
#include <net-snmp/agent/net-snmp-agent-includes.h> |
#include <net-snmp/agent/snmp_vars.h> |
#include <net-snmp/agent/snmp_vars.h> |
|
|
|
#include "thread.h" |
|
|
/* Structures here are mostly compatible with UCD SNMP 4.1.1 */ |
/* Structures here are mostly compatible with UCD SNMP 4.1.1 */ |
#define MATCH_FAILED (-1) |
#define MATCH_FAILED (-1) |
#define MATCH_SUCCEEDED 0 |
#define MATCH_SUCCEEDED 0 |
Line 53 struct trap_object
|
Line 55 struct trap_object
|
|
|
/* Declare SMUX return value. */ |
/* Declare SMUX return value. */ |
#define SNMP_LOCAL_VARIABLES \ |
#define SNMP_LOCAL_VARIABLES \ |
static long snmp_int_val; \ | static long snmp_int_val __attribute__ ((unused)); \ |
static struct in_addr snmp_in_addr_val; | static struct in_addr snmp_in_addr_val __attribute__ ((unused)); |
|
|
#define SNMP_INTEGER(V) \ |
#define SNMP_INTEGER(V) \ |
( \ |
( \ |
Line 106 extern int smux_trap (struct variable *, size_t,
|
Line 108 extern int smux_trap (struct variable *, size_t,
|
const struct trap_object *, size_t, |
const struct trap_object *, size_t, |
u_char); |
u_char); |
|
|
extern int oid_compare (oid *, int, oid *, int); | extern int oid_compare (const oid *, int, const oid *, int); |
extern void oid2in_addr (oid [], int, struct in_addr *); |
extern void oid2in_addr (oid [], int, struct in_addr *); |
extern void *oid_copy (void *, const void *, size_t); |
extern void *oid_copy (void *, const void *, size_t); |
extern void oid_copy_addr (oid [], struct in_addr *, int); |
extern void oid_copy_addr (oid [], struct in_addr *, int); |