aboutsummaryrefslogtreecommitdiffstats
path: root/src/links.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-24 20:21:11 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-24 20:21:11 +0100
commit3a1c0af8681f16d9ed3cebe4c23eaf50372e6932 (patch)
tree4e7556eba3cc65d111410e80142ff4ead27cb3ee /src/links.c
parent4e2e242d708a946363313a7320e5619255870396 (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 'src/links.c')
-rw-r--r--src/links.c4
1 files changed, 2 insertions, 2 deletions
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;