Attention is currently required from: pespin.
pespin uploaded patch set #2 to this change.
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
To view, visit change 28712. To unsubscribe, or for help writing mail filters, visit settings.