diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-24 20:21:11 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-24 20:21:11 +0100 |
commit | 3a1c0af8681f16d9ed3cebe4c23eaf50372e6932 (patch) | |
tree | 4e7556eba3cc65d111410e80142ff4ead27cb3ee /include | |
parent | 4e2e242d708a946363313a7320e5619255870396 (diff) |
udp: Create a SNMP session per UDP
We do not have the multiple callbacks from SNMP under control
and we can only save the last request if the SNMP Session is
inside the link. This is mostly a workaround for Net-SNMP and
the missing documentation on the async functionality.
Diffstat (limited to 'include')
-rw-r--r-- | include/bsc_data.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h index 8b72785..698a33f 100644 --- a/include/bsc_data.h +++ b/include/bsc_data.h @@ -42,7 +42,6 @@ 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; @@ -61,6 +60,9 @@ struct mtp_udp_link { struct mtp_udp_data *data; struct llist_head entry; + + /* snmp for controlling the link */ + struct snmp_mtp_session *session; }; enum { @@ -150,8 +152,8 @@ void update_con_state(struct mtp_link_set *link, int rc, struct sccp_parse_resul unsigned int sls_for_src_ref(struct sccp_source_reference *ref); /* udp init */ -int link_global_init(struct mtp_udp_data *data, char *dest_ip, int src_port); -int link_udp_init(struct mtp_udp_link *data, const char *dest_ip, int port); +int link_global_init(struct mtp_udp_data *data, int src_port); +int link_udp_init(struct mtp_udp_link *data, char *dest_ip, int port); int link_init(struct bsc_data *bsc); int link_shutdown_all(struct mtp_link_set *); int link_reset_all(struct mtp_link_set *); |