aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-18 19:04:26 +0200
committerHarald Welte <laforge@gnumonks.org>2014-08-18 20:51:03 +0200
commit46fc7e2df78d489bfd9de2fa4084ea8d369f1401 (patch)
tree0ec91370e149f036ad2f53bdfc8a54129d79c9b4
parentf5efba40e7068595db788463e8b94ba56642218a (diff)
ipa: Add E1INP_SIGN_OSMO to use IPAC_PROTO_OSMO via e1_input
In order to make use of the IPAC_PROTO_OSMO stream_id of the IPA multiplex via the e1_input abstraction layer, we need to define E1INP_SIGN_OSMO and treat it like other signalling (OML/RSL). This is required for the upcoming code that uses IPAC_PROTO_OSMO to remotely insert routing table entries into the OML router (e.g. from osmo-bts).
-rw-r--r--include/osmocom/abis/e1_input.h1
-rw-r--r--src/e1_input.c1
-rw-r--r--src/input/ipaccess.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index cf8677b..fe5d624 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -18,6 +18,7 @@ enum e1inp_sign_type {
E1INP_SIGN_NONE,
E1INP_SIGN_OML,
E1INP_SIGN_RSL,
+ E1INP_SIGN_OSMO, /* IPA CCM OSMO sub-type */
};
const char *e1inp_signtype_name(enum e1inp_sign_type tp);
diff --git a/src/e1_input.c b/src/e1_input.c
index e5ddaa3..0994910 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -205,6 +205,7 @@ static const char *sign_types[] = {
[E1INP_SIGN_NONE] = "None",
[E1INP_SIGN_OML] = "OML",
[E1INP_SIGN_RSL] = "RSL",
+ [E1INP_SIGN_OSMO] = "OSMO",
};
const char *e1inp_signtype_name(enum e1inp_sign_type tp)
{
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index b124121..8ae00d3 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -588,8 +588,8 @@ static int __handle_ts1_write(struct osmo_fd *bfd, struct e1inp_line *line)
switch (sign_link->type) {
case E1INP_SIGN_OML:
- break;
case E1INP_SIGN_RSL:
+ case E1INP_SIGN_OSMO:
break;
default:
bfd->when |= BSC_FD_WRITE; /* come back for more msg */