* Add support for multiple ip.access nanoBTS at one BSC
* keep track of site_id/bts_id in struct gsm_bts
* dynamically match incoming OML/RSL over TCP connections by BTS Unit ID
* introduce new debug category DINP (separate from DMI for hexdumps)
* remove ia_config() as it is no longer needed
*
* ensure that signalling links / E1 line information is correctly printed
* when bootstrapping RSL or OML, tell us for which BTS it is being doen
* separate bootstrap_bts() out from bootstrap_network()
* statically configure two ip.access BTS, one with unit id's 1800/0/0 and 1801/0/0
diff --git a/src/e1_config.c b/src/e1_config.c
index 02fdb5d..ffc7e46 100644
--- a/src/e1_config.c
+++ b/src/e1_config.c
@@ -71,8 +71,8 @@
return mi_setup(cardnr, line, release_l2);
}
-/* do some compiled-in configuration for our BTS/E1 setup */
-static struct e1inp_line *__ia_config(struct gsm_bts *bts)
+/* configure pseudo E1 line in ip.access style and connect to BTS */
+int ia_config_connect(struct gsm_bts *bts, struct sockaddr_in *sin)
{
struct e1inp_line *line;
struct e1inp_ts *sign_ts, *rsl_ts;
@@ -99,30 +99,6 @@
bts->oml_link = oml_link;
bts->c0->rsl_link = rsl_link;
- return line;
-}
-
-/* configure pseudo E1 line in ip.access style and create listening socket */
-int ia_config(struct gsm_bts *bts)
-{
- struct e1inp_line *line;
-
- line = __ia_config(bts);
- if (!line)
- return -ENOMEM;
-
- return ipaccess_setup(line);
-}
-
-/* configure pseudo E1 line in ip.access style and connect to BTS */
-int ia_config_connect(struct gsm_bts *bts, struct sockaddr_in *sin)
-{
- struct e1inp_line *line;
-
- line = __ia_config(bts);
- if (!line)
- return -ENOMEM;
-
/* default port at BTS for incoming connections is 3006 */
if (sin->sin_port == 0)
sin->sin_port = htons(3006);