path: root/include
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-21 12:57:12 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-21 18:01:36 +0100
commit083a30b9b8fc27fff249285f3accdbff44e84b05 (patch)
tree11a55a112d7486c36eda03a995f7fdb90cd499e3 /include
parentf38114eee2caae36d345691468bef8c2611e7547 (diff)
udp: Poll SNMP for timeouts and fd every 100ms
This is the easiest way to integrate net-snmp with the event loop, every 100ms we are going to check for timeouts or incoming messages
Diffstat (limited to 'include')
2 files changed, 2 insertions, 0 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h
index 587afec..3311d53 100644
--- a/include/bsc_data.h
+++ b/include/bsc_data.h
@@ -43,6 +43,7 @@ struct snmp_mtp_session;
struct mtp_udp_data {
struct write_queue write_queue;
struct snmp_mtp_session *session;
+ struct timer_list snmp_poll;
struct llist_head links;
diff --git a/include/snmp_mtp.h b/include/snmp_mtp.h
index a42b08e..beefa48 100644
--- a/include/snmp_mtp.h
+++ b/include/snmp_mtp.h
@@ -34,5 +34,6 @@ void snmp_mtp_stop_c7_datalink(struct snmp_mtp_session *, int link_id);
struct snmp_mtp_session *snmp_mtp_session_create(char *host);
void snmp_mtp_deactivate(struct snmp_mtp_session *, int link_id);
void snmp_mtp_activate(struct snmp_mtp_session *, int link_id);
+void snmp_mtp_poll();