aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-05 19:13:00 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-05 20:26:27 +0100
commitd38f10593afbd9ab79d4940d48371333d0c034c9 (patch)
tree946684de325ac6718954d61667974cc351efa46b /openbsc/include
parent0ae575536a0421bf734e51bdc71722d107ab6c13 (diff)
[LAPD] Support multiple instances of LAPD
We cannot afford static/global state, as we may have multiple E1 lines, each having its own LAPD instance. Furthermore, we might even have multiple LAPD instances on the same E1 line (think of a multi-drop setup). This also implements dynamic TEI allocation, i.e. no hardcoded TEI list anymore.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/e1_input.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/e1_input.h b/openbsc/include/openbsc/e1_input.h
index ca8d5a65a..95b9dd1cc 100644
--- a/openbsc/include/openbsc/e1_input.h
+++ b/openbsc/include/openbsc/e1_input.h
@@ -87,7 +87,11 @@ struct e1inp_ts {
/* ip.access driver has one fd for each ts */
struct bsc_fd fd;
} ipaccess;
-
+ struct {
+ /* DAHDI driver has one fd for each ts */
+ struct bsc_fd fd;
+ struct lapd_instance *lapd;
+ } dahdi;
} driver;
};