Attention is currently required from: pespin. Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28712
to look at the new patch set (#2).
Change subject: Refactor {cbsp,sbcap}_cbc_accept_cb ......................................................................
Refactor {cbsp,sbcap}_cbc_accept_cb
Delay allocating the structures until really needed. First do checks agains the opened connection, and if an issue is detected simply close the fd. Next, fetch or allocate the related peer. Finally, create the link from the fd. This makes it easier to add early extra checks later when peers will contain info on link_mode (client|server|disabled) later on.
Change-Id: Id4f83ec6b0b14e556b1caa9c80e7f68d062fec57 --- M include/osmocom/cbc/cbsp_link.h M include/osmocom/cbc/sbcap_link.h M src/cbsp_link.c M src/cbsp_link_fsm.c M src/sbcap_link.c M src/sbcap_link_fsm.c 6 files changed, 139 insertions(+), 80 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/12/28712/2