|Age||Commit message (Collapse)||Author||Files||Lines|
Code extracted from ipa_stream_server.c.
This functions were before located in channel/abis/ipa_stream_client.c,
but they are generic for IPA units.
This patch removes osmo_ipa_recv_msg, it performs two syscall invocations
and it's stream generic. Now we use the specific receival function
we want to use (no matter if stream or datagram based) and then we
call osmo_ipa_process_msg to check that the IPA message correct.
If we're acting as client, we don't have to reply ID_ACK to
one received ID_ACK (otherwise, we enter a loop).
This patch adds the generic channel infrastructure that allows to
create channel of different types. Each channel has their own
struct osmo_chan *chan;
chan = osmo_chan_create(tall_example, CHAN_ABIS_IPA_SERVER);
/* specific configuration functions per supported channel. */
osmo_chan_abis_ipa_unit_add(chan, 1801, 0);
/* open channel. */
The input path requires a callback to be registered. The output path
is handled through:
int osmo_chan_enqueue(struct osmo_chan *c, struct msgb *msg);
The msg->dst must be set (it can be taken from the original message
to route one reply).
This patch also adds A-bis IPA server support. It has been tested with
e1inp_ipa_bsc_test available in libosmo-abis.
This patch adds IPA helper function that can be use on top of stream
The current API is just a copy and paste from libosmo-abis, it will
change in follow up patches to improve it.