Commit Graph

23 Commits

Author SHA1 Message Date
Pau Espin 5661cef889 Move struct cbc bring up code to its own file and functions
This way it's clear and we have in one place all the related code that
neds to be run at a given time.t

Change-Id: I00fe755340664d4ca4a5cfdcae8d4cd33b2f40a1
2022-07-22 15:45:09 +02:00
Pau Espin 881d5bab4b Get rid of internal.h
Let's create missing header files and move stuff around to have a clear
view of who implements what.

Change-Id: Ib32091d716b33bca58e2d3acf8840b52824c0bd3
2022-07-20 19:23:36 +02:00
Pau Espin cc599727c7 rest_api: Fix cbs.data_user_len not set in 'payload_encoded'
This is later used in cbcmsg_to_cbsp(), but only set for type
'payload_decoded' in parse_payload_decoded().

Change-Id: I519cf300cd01e8c2728babeaa77b8486f47115be
2022-07-12 19:42:45 +02:00
Pau Espin 8dc5648176 Move header files to include/osmocom/cbc/ dir
Change-Id: Id6c9f99805169d624a2c6e001fe1983e24fdc5c3
2022-07-04 13:35:47 +02:00
Harald Welte cf3c47d6bc varaible for atoi() result shouild be signed integer
... otherwise we won't detect < 0 cases.

Fixes: CID#240731
Change-Id: I650fce5bd64752823ee57d8b528d2b371fada857
2021-10-25 08:09:16 +02:00
Harald Welte 13385443a3 rest_api.c: Add missing \n in log line after error message
Change-Id: If2e9134d827891468df7ae35b89d6dfb798eb0dc
2021-02-20 17:34:30 +01:00
Harald Welte 78fd4efa81 Make ECBE (REST interface) local bind IP + port VTY-configurable
Change-Id: I656d0d1c7b21db90b62e71109d9844476a2e3215
2021-01-24 14:05:47 +01:00
Harald Welte eaee3e30b1 add link to upstream bug related to custom malloc/free
Change-Id: If58d307bbdade5d4d7c5e39ada8c14c052d215a9
2021-01-14 18:11:00 +00:00
Harald Welte 1507e68b6e fix various compiler warnings
Change-Id: Icbf0839d0d4725c1b66ddf7a7367bae2600e418e
2021-01-03 13:55:16 +01:00
Harald Welte 76101c4a86 More massive CBC WIP
Using this state we can actually successfully add mesasges via
the REST interface and see them being sent via CBSP to the BSCs,
who then transmit to BTSs who send it to MSs and the MSs show them...

Change-Id: If29bd4bbbf88a0ca58de9ff29ad524b0a7262a8e
2021-01-03 13:14:46 +01:00
Harald Welte da91dc3521 Fix REST API completion after successful POST / WRITE
Change-Id: If0c9c446ea0ece78e044961de3cba20a4eb39b9d
2021-01-02 11:42:49 +01:00
Harald Welte 49daa80fbf repetition_period
Change-Id: I1833125dab6f9df9fc9745ea20532b3b9c612754
2021-01-02 00:27:32 +01:00
Harald Welte 548e4e06c5 implement user_data_len
Change-Id: Idcaad51b789a041a51bd819003cb5ae902153b41
2021-01-01 16:35:22 +01:00
Harald Welte 7313772cdb WIP
Change-Id: I240b4be2fbb316e423d1bf366061b08912814011
2020-12-31 19:07:41 +01:00
Harald Welte 50ec65c5af more (and better) logging
Change-Id: Ie6965b154bd0a60559ce40ac4def988d137ba351
2020-12-31 17:32:44 +01:00
Harald Welte 41634872dc WIP: use inter-thread queue between REST and main
This way we serialize access to core data structures and also allow
future per-message FSMs in the main thread to first communicate to the
RAN peers before permitting the REST/HTTP worker thread to return
any response back to the external REST interface user.

Change-Id: Ia9f656733cf16412926a6d6dc9e1ff4243d941af
2020-12-30 17:18:31 +01:00
Harald Welte c8ea464939 foo
Change-Id: If4b20db51a81a90b3e069b45114a3200f5be57a8
2020-12-30 17:18:15 +01:00
Harald Welte 85d1b36e9d foo
Change-Id: I266dfb3862e7c9794fc1bbbb143740eb120b3125
2020-12-30 17:18:07 +01:00
Harald Welte 2dd3ecdca6 use cbsp_category rather than cbc_message_prio
Change-Id: Ie837ba7af11d56c4f48d2dc3d8e6b4d37de89002
2019-08-05 22:09:35 +02:00
Harald Welte 568fe5de57 log REST API HTTP port on startup
Change-Id: I13e6e5d0e572626332b5675e96c249a7664374ba
2019-08-05 22:09:35 +02:00
Harald Welte fdb29d94e3 track libulfius memory allocations using talloc
Change-Id: I9be666e5fac0caf6f7d07c01f39e0f409c7465db
2019-08-05 22:09:34 +02:00
Harald Welte f8d8a01b6e introduce cbc_data.h with core data model of CBC
Change-Id: I5afecfede6c0b718d71bd9c825d4074d3c6635ca
2019-07-20 15:37:29 +02:00
Harald Welte 1b13c35884 Add initial version of REST API
Change-Id: Ib38cefa59553af6f5bc0414d6d2845f40de8fd04
2019-07-20 14:44:22 +02:00