aboutsummaryrefslogtreecommitdiffstats
path: root/src/links.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-21 18:00:36 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-21 19:40:49 +0100
commiteab20964b2f059898fc804584e55a157c021afc0 (patch)
treee6dfcce7b7d40d761a2bfb13200794ba42006a89 /src/links.c
parent4da421da6fed6135f7c01eeb6769fb2a82d476cb (diff)
udp: Make the SNMP code asynchronouson-waves/multiple-links
Do not block the application when doing a SNMP request. Work with the results coming back from the callback. Right now a link can only be taken down and up.
Diffstat (limited to 'src/links.c')
-rw-r--r--src/links.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/links.c b/src/links.c
index bf282b6..4342447 100644
--- a/src/links.c
+++ b/src/links.c
@@ -126,12 +126,7 @@ int link_init(struct bsc_data *bsc)
LOGP(DINP, LOGL_NOTICE, "Using UDP MTP mode.\n");
- /* setup SNMP first, it is blocking */
- bsc->udp_data.session = snmp_mtp_session_create(bsc->udp_ip);
- if (!bsc->udp_data.session)
- return -1;
-
- if (link_global_init(&bsc->udp_data, bsc->src_port) != 0)
+ if (link_global_init(&bsc->udp_data, bsc->udp_ip, bsc->src_port) != 0)
return -1;
/* now connect to the transport */