From 3a1c0af8681f16d9ed3cebe4c23eaf50372e6932 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 24 Jan 2011 20:21:11 +0100 Subject: 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. --- src/links.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/links.c') diff --git a/src/links.c b/src/links.c index 086b95c..3977daf 100644 --- a/src/links.c +++ b/src/links.c @@ -116,7 +116,7 @@ int link_init(struct bsc_data *bsc) LOGP(DINP, LOGL_NOTICE, "Using UDP MTP mode.\n"); - if (link_global_init(&bsc->udp_data, bsc->udp_ip, bsc->src_port) != 0) + if (link_global_init(&bsc->udp_data, bsc->src_port) != 0) return -1; @@ -140,7 +140,7 @@ int link_init(struct bsc_data *bsc) * SLTM and it begins a reset. Then we will take it up * again and do the usual business. */ - snmp_mtp_deactivate(lnk->data->session, + snmp_mtp_deactivate(lnk->session, lnk->link_index); bsc->start_timer.cb = start_rest; bsc->start_timer.data = &bsc; -- cgit v1.2.3