Commit Graph

87 Commits

Author SHA1 Message Date
Harald Welte 20d20c8da1 fix memory leaks when osmo_wqueue_enqueue() fails
Related: OS#5329
2021-11-25 15:49:52 +01:00
Holger Hans Peter Freyther 20616fe316 misc: Fix the email address in the 2012-03-26 16:39:01 +02:00
Harald Welte 44c1119d0d port to more recent libosmocore API
This code has been bitrotting and missing all of the libosmocore API
changes of teh last 1.5 years or so...
2012-01-30 20:35:41 +01:00
Harald Welte 05943cb3cb use proper payload for UpdateGprsLocationArg and matching localOpCode 2010-08-01 22:50:32 +02:00
Harald Welte 0d7cd6c86d store callback-private-data (cb_priv) as user_ref2 in tcci and tcap_invocation 2010-07-29 12:57:20 +02:00
Harald Welte ecf0680aa5 avoid sending a dialogue request with primitive == 0 2010-07-29 11:54:42 +02:00
Harald Welte 537e110011 Introduce new (unfinished) application support layer
This will be what applicaitons like the MSC or SGSN actually use to
invoke MAP operations.
2010-07-22 22:22:17 +02:00
Harald Welte d6f49749dc introduce a user-specified 'user_ref' that gets passed back in result/error indications
This will allow us to store a reference to e.g. a map operation
at INVOKE time, which we can then de-reference once the RESULT
2010-07-21 15:27:11 +02:00
Harald Welte 19070cb104 include 'id-as-dialogue' OID in AARQ and AARE dialogue portions 2010-07-20 18:18:11 +02:00
Harald Welte 8acf717566 introduce new 'tcap_prim_buf' as union for dialg and component primitives 2010-07-20 14:28:11 +02:00
Harald Welte 19f4897e34 fix more memory leaks regarding OBJECT_IDENTIFIER and ANY types 2010-07-20 12:58:04 +02:00
Harald Welte fa4f469558 actually call the DER encoder for TC-END message 2010-07-20 12:23:08 +02:00
Harald Welte 933af61ba5 make sure TC-END.req TCMessage contains destination trans_id 2010-07-20 12:22:50 +02:00
Harald Welte 48ac4af172 tcap_test: Send END if caller requests END (and not CONTINUE) 2010-07-20 12:15:33 +02:00
Harald Welte bc10c80135 Make sure we properly initialize ANY_t to NULL 2010-07-20 12:15:19 +02:00
Harald Welte facaed2396 TC-User: make sure we don't include empty user_info if there is no user_info 2010-07-20 11:46:51 +02:00
Harald Welte a6d75256cd Allocate Transaction ID while allocating Dialogue 2010-07-20 11:42:31 +02:00
Harald Welte dbbf03d986 correctly look-up the _local_ transaction ID on N-UNITDATA.ind 2010-07-20 11:41:48 +02:00
Harald Welte 9c0a3ef50e tcap_test: use correct invoke_id when responding with RESULT-L 2010-07-20 11:20:56 +02:00
Harald Welte 241880bc87 Properly set ISM state 'sent' while gathering components for new message
This is done by the new tcap_cha_req_components() function.  Also,
we now have a tcap_ism_state_set() function for debugging ISM state
2010-07-20 10:06:49 +02:00
Harald Welte 2e7a6f8cdd fix some more memory leaks and make sure we always allocate dynamically 2010-07-20 00:17:03 +02:00
Harald Welte 7b907ec4d4 use more dynamically-allocated structures as opposed to stack-allocated 2010-07-19 22:05:40 +02:00
Harald Welte ed59503766 link existing (incomplete) TC-U-ABORT.req code to TC-User API 2010-07-19 19:59:29 +02:00
Harald Welte 802d8ca108 use the existing TC-UNI.req support 2010-07-19 19:56:39 +02:00
Harald Welte e7c849d4f0 implement TC-U-CANCEL.req 2010-07-19 19:54:16 +02:00
Harald Welte fead1fffd4 implement TC-U-REJECT.req 2010-07-19 19:46:11 +02:00
Harald Welte d5c4b8ef20 Implement TC-U-ERROR.req primitive 2010-07-19 19:21:16 +02:00
Harald Welte 57058f3600 Don't use stack-based libasn1c objects for component primitives
In order for the recursive free-ing of libasn1c data structures to
work, we cannot have some of them stack-allocated.
2010-07-19 18:33:53 +02:00
Harald Welte a7c47009c9 Make TC-user signalling of TC-RESULT-{L,NL} work 2010-07-19 16:29:51 +02:00
Harald Welte a764e40c80 bring libosm-tcap more in line with libasn1c's use of talloc
libasn1c expects all data structures to be heap-allocated, whereas
we used to allocate some of them on the stack, which causes problems
at free() time.

As a side-effect, we had to remove the 'struct tcap_component' and
replace its list_head in tcap_dialogue with a 'struct ComponentPortion'
2010-07-19 15:09:23 +02:00
Harald Welte 5a7afc24a7 switch to new 'pass by value' at the TCAP-User boundary
this will enable the TCAP-User to queue primitives at will, since they
don't hold references to any data inside the TCAP-layer
2010-07-18 23:39:22 +02:00
Harald Welte c671dff577 'struct tcap_component' is allocated off the dialogue, not the invocation 2010-07-18 23:38:50 +02:00
Harald Welte 2ede379bb9 Properly use autoconf-determined libosmo-asn1-tcap ldflags 2010-07-18 23:19:00 +02:00
Harald Welte b618623844 Add AGPLv3 headers and copyright statements to all files 2010-07-18 17:17:17 +02:00
Harald Welte c9a0de8589 Add GNU AGPLv3 as license for this project 2010-07-18 17:10:22 +02:00
Harald Welte b37ec74502 fix compiler warnings 2010-07-18 10:12:32 +02:00
Harald Welte c36a54d063 hide all internal symbols of the library using -fvisibility=hidden 2010-07-18 01:46:34 +02:00
Harald Welte 6d68a0e5e2 fix syntax error to make autoreconf happy 2010-07-18 01:46:21 +02:00
Harald Welte c29cc7c826 tcap_test: enable talloc report on exit 2010-07-18 01:25:32 +02:00
Harald Welte 2b0e73f42a release incoming UDP msgb's after we processed them 2010-07-18 01:24:08 +02:00
Harald Welte 2631e7adcd release all formerly-pending tcap_components after sending them 2010-07-18 01:23:49 +02:00
Harald Welte d62e881f9d properly free parsed asn.1 structure before N-UNITDATA.ind completes 2010-07-18 01:13:31 +02:00
Harald Welte 6a06c081cd Fix encoding of DialoguePortion of TC-CONTINUE and TC-END 2010-07-18 01:09:24 +02:00
Harald Welte 1e2f04410b implement simplistic UDP transport for TCAP
Normally, TCAP is not spoken directly on top of UDP, however this
makes it really easy to test...
2010-07-17 21:43:00 +02:00
Harald Welte aa3011d53e L/R-REJECT primitives are component primitives and thus have invocation as argument 2010-07-17 20:32:50 +02:00
Harald Welte fc9cc76f02 There is no 'struct OBJECT_IDENTIFIER', only OBJECT_IDENTIFIER_t 2010-07-17 20:30:21 +02:00
Harald Welte 52cef61627 export tacp_transport_entity to tcap_user.h 2010-07-17 20:29:49 +02:00
Harald Welte ab5bc475af rename scxp_entity into tcap_transport_entity 2010-07-17 20:25:03 +02:00
Harald Welte a5937f28d9 Enable TC-END.req from user/application 2010-07-17 19:32:40 +02:00
Harald Welte a64f6ccfff introduce tacp_trans_set_state() as wrapper to set transaction state 2010-07-17 19:11:48 +02:00