#ifndef DELIVERBYNOTIFY_H #define DELIVERBYNOTIFY_H 1 #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif config_add_mib(NET-SNMP-PERIODIC-NOTIFY-MIB); void init_deliverByNotify(void); SNMPAlarmCallback deliver_execute; #define NETSNMP_DELIVER_NO_PERIOD_OID 0x01 #define NETSNMP_DELIVER_NO_MSG_COUNTS 0x02 /* implementation details */ typedef struct deliver_by_notify_s { int frequency; time_t last_run; time_t next_run; oid *target; size_t target_len; int max_packet_size; int flags; } deliver_by_notify; int calculate_time_until_next_run(deliver_by_notify *it, time_t *now); #endif /* deliverByNotify_h */