summaryrefslogtreecommitdiffstats
path: root/src/input/ipa.c
Commit message (Collapse)AuthorAgeFilesLines
* ipaccess: make some functions static that shouldn't be exportedHarald Welte2011-08-191-2/+2
|
* ipa: fix compiler warning about ssize_t / socklen_tHarald Welte2011-08-191-1/+1
|
* update to comply with libosmocore namespace fixesHarald Welte2011-07-191-23/+23
| | | | | This updates the code and brings it in sync to libosmocore git commit 892e621fec571c7cba3573caa0d328ed1b25d8ee
* talloc: revert to use talloc inside libosmocoreHarald Welte2011-07-181-1/+1
| | | | | | It's not a good idea to confuse the two changes with each other. Moving the Abis part into a separate library is independent from the question whether we have talloc inside libosmocore or use a stand-alone talloc library.
* hsl: BTS supportPablo Neira Ayuso2011-07-081-3/+24
| | | | | | This patch adds the BTS support for the hsl driver. It includes two examples under the tests/ directory.
* logging: use new harald's logging infrastructure in libosmocorePablo Neira Ayuso2011-07-051-1/+0Star
| | | | | I can send patches to improve it later, better not to waste much time at it by now so port libosmo-abis upon it.
* major updates in e1_input callback ops and IPA infrastructuresPablo Neira Ayuso2011-06-301-23/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is a major update of the callback infrastructure, now the e1input_ops looks like the following: struct e1inp_sign_link * (*sign_link_up)(void *unit_info, struct e1inp_line *line, enum e1inp_sign_type type); void (*sign_link_down)(struct e1inp_line *line); int (*sign_link)(struct msgb *msg, struct e1inp_sign_link *link); The sign_link_up and sign_link_down will be used by the A-bis over IP input drivers. The sign_link_up callback is used if we receive a ID_RESP message, in that case, we have to set up the sign link for the corresponding new OML/RSL signal link. The pointer to unit_info provides a data structure that contains the BTS device details if we run as BSC, and the requested device information from the BSC if we run as BTS. The sign_link_up callback must return the new sign_link created. The sign_link_down callback is invoked if the line does down, which means that the counterpart has closed the socket. The sign_link callback is used to handle all RSL/OML messages. I have also added the following callback to the e1inp_driver: + void (*close)(struct e1inp_ts *ts); Which is invoked if you call e1inp_sign_link_destroy(). This callback is used to close the socket that is linked to that timeslot. This is useful for A-bis over IP drivers since sockets are closed if the OML/RSL signalling link is destroyed. As you can notice, I have also added all the ID_RESP parsing into libosmo-abis for both ipaccess and hsl drivers. This patch also contains a rework of the ipa_client_link whose integration with the e1_input infrastructure was broken (the transmission path was broken). This patch also contains more develop examples that act as BSC and BTS for the ipaccess driver. Sorry, I know it would be better to split all these changes into logical pieces but many of them are tightly related. This is under heavy development stage, it's anyway hard to track changes until this becomes more stable.
* ipa: add ipa_*_send() to transmit messagesPablo Neira Ayuso2011-06-231-0/+15
| | | | | | | | This patch adds ipa_*_send() functions to transmit messages using the new A-bis over IP infrastructure. This patch completes the transmission path support for the A-bis over IP infrastructure.
* ipa: add ipa_server_peer infrastructurePablo Neira Ayuso2011-06-231-0/+99
| | | | | This patch adds the ipa_server_peer abstraction which provide helpers for the accept path of ipa_server_link.
* ipa: extend ipa_*link_create() to take one generic data pointerPablo Neira Ayuso2011-06-231-2/+6
| | | | | With this patch we can attach generic data to some IPA link. This will be useful for the IPA proxy support.
* ipa: add ipa_server_link abstractionPablo Neira Ayuso2011-06-211-0/+73
| | | | | | | | This patch adds the ipa_server_link which allows to create IPA servers. I have also changed the ipaccess driver to use it. Still missing the port of HSL driver.
* ipa: rename `struct ipa_link' by `struct ipa_client_link'Pablo Neira Ayuso2011-06-211-19/+19
| | | | | And IPA_LINK_STATE_* by IPA_CLIENT_LINK_STATE_* to prepare the addition of the ipa_server_link abstraction.
* ipaccess: initial works to get BTS mode workingPablo Neira Ayuso2011-06-211-3/+7
| | | | | | | | | | | | | | This patch adds the initial support to get BTS mode working with the ipaccess driver. Now, the driver handles IPA ping, pong and id_ack messages internally in BTS modes, and it passes the signalling messages to the client application by invoking the callback line operations. Moreover, with this patch, each IPA link object always has one E1 line object associated. Still HSL BTS-mode remains unimplemented.
* hsl: add support for BTS-modePablo Neira Ayuso2011-06-211-2/+4
| | | | This patch adds support for BTS-mode for the hsl input driver.
* e1input: add address as parameter to e1inp_line_update(...)Pablo Neira Ayuso2011-06-211-2/+3
| | | | | This patch adds a new parameter to e1inp_line_update that allows to specific the address for A-bis over IP BSC/BTS.
* input: ipaccess: add preliminary BTS-side for A-bis over IPPablo Neira Ayuso2011-06-141-0/+234
This patch adds the BTS-side for the ip.access driver for A-bis over IP communications. This patch adds one example under test/ so you can test the existing BSC and BTS sides over ip.access. Still incomplete, it requires to allow to register some callback in the BTS side to perform some action once we receive some message. This will come in next updates.