osmo-cbc/include/osmocom/cbc
Pau Espin 7fbd6aa472 Catch and forbid configuring peers before configuring main protocol node
When the user enters each "peer" node, the related object is created if
not yet existing, and its updated config is applied (connect()) upon
exiting the node (cbc_peer_apply_cfg_chg()). When connect happens, it
needs to obtain the local IP address from the main protocol node
(cbsp|sbcap)", which means it must be configured beforehand, otherwise
the peers connect using the default values.

Hence, it makes no sense to configure peers if the main protocol
information has not yet been configured. The usual example configs as
well as the write-config VTY commands provide correct order of things.
Catch and forbid the user providing a config file where the peers are
configured before the main protocol nodes.

Related: OS#6154
Change-Id: I678f9e6715c85b1eb9116cc892f1a8299577c0c2
2023-08-29 17:26:56 +02:00
..
Makefile.am Split event list for smscb_message_fsm and smscb_peer_fsm 2022-07-29 14:49:30 +02:00
cbc_data.h Catch and forbid configuring peers before configuring main protocol node 2023-08-29 17:26:56 +02:00
cbc_message.h vty: Add command to delete expired messages 2022-07-26 08:03:20 +02:00
cbc_peer.h Support CBSP/TCP and SBc-AP/SCTP client mode 2022-07-25 16:27:26 +02:00
cbc_vty.h Move vty stuff to its own header cbc_vty.h 2022-07-20 19:23:36 +02:00
cbsp_link.h Propagate error to caller when tx cbsp/sbcap Write-Replace-Req fails 2022-07-29 17:55:33 +02:00
cbsp_link_fsm.h Rename {cbsp,sbcap}_server(_fsm).h s/server/link/ 2022-07-20 20:10:16 +02:00
cbsp_msg.h Rename functions generating CBSP/SBc-AP Write-Replace request 2022-07-26 14:33:43 +02:00
charset.h Move header files to include/osmocom/cbc/ dir 2022-07-04 13:35:47 +02:00
debug.h Introduce logging category smscb 2022-07-29 14:49:30 +02:00
rest_it_op.h Split cbc_message related code to its own .c and .h file 2022-07-20 19:23:36 +02:00
sbcap_link.h Propagate error to caller when tx cbsp/sbcap Write-Replace-Req fails 2022-07-29 17:55:33 +02:00
sbcap_link_fsm.h sbcap: Drop unused events 2022-07-26 14:33:47 +02:00
sbcap_msg.h sbcap: Store reported failed TAIs from WriteReplaceResponse in cbc_message_peer 2022-07-29 14:49:30 +02:00
smscb_message_fsm.h Split event list for smscb_message_fsm and smscb_peer_fsm 2022-07-29 14:49:30 +02:00
smscb_peer_fsm.h Split smscb_peer_fsm into CBSP and SBcAP specific FSMs 2022-07-29 14:54:26 +02:00