summaryrefslogtreecommitdiff
path: root/agent/mibgroup/target/target.h
blob: a528b2355ac81b2762a6188b3e184891fd62433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SNMP_TARGET_H
#define SNMP_TARGET_H

/*
 * optional filtering function.  Return either TARGET_SKIP or TARGET_KEEP 
 */
typedef int     (TargetFilterFunction) (struct targetAddrTable_struct *
                                        targaddrs,
                                        struct targetParamTable_struct *
                                        param, void *);
#define TARGET_KEEP 0
#define TARGET_SKIP 1


/*
 * utility functions 
 */

netsnmp_session *get_target_sessions(char *taglist, TargetFilterFunction *,
                                     void *filterArg);

config_require(target/snmpTargetAddrEntry target/snmpTargetParamsEntry)

#endif                          /* SNMP_TARGET_H */