aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-13 19:44:21 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-13 19:44:21 +0100
commitbd3137c2dd59465f824d1f81abf1aace82f5a9f5 (patch)
treec569a18b033496e4cbefa23b62204568a2ed449d
parent15ccc77f62045d5243571a1fe3359432dd16d13b (diff)
INPUT: Include TEI + SAPI in E1 INPUT SIGNAL
-rw-r--r--openbsc/include/openbsc/signal.h2
-rw-r--r--openbsc/src/e1_input.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/signal.h b/openbsc/include/openbsc/signal.h
index 027358627..a2257db73 100644
--- a/openbsc/include/openbsc/signal.h
+++ b/openbsc/include/openbsc/signal.h
@@ -246,6 +246,8 @@ struct ho_signal_data {
struct input_signal_data {
int link_type;
+ uint8_t tei;
+ uint8_t sapi;
struct gsm_bts_trx *trx;
struct e1inp_line *line;
};
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index b55fe2e62..baebf2f68 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -571,6 +571,8 @@ int e1inp_event(struct e1inp_ts *ts, int evt, u_int8_t tei, u_int8_t sapi)
isd.link_type = link->type;
isd.trx = link->trx;
+ isd.tei = tei;
+ isd.sapi = sapi;
/* report further upwards */
dispatch_signal(SS_INPUT, evt, &isd);