Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/28718 )
Change subject: Avoid changing peer's protocol once set
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
@laforge I'm not really happy about the fact that "protocol" needs to be set under the node as a command, there's no good way to prevent it from not being set.
It'd be great to have that set at creation time of the peer, so I propse:
* adding a new "peer proto NAME" cmd
* deprecating "peer NAME" (translate to "peer cbsp NAME" internally, for older release compat).
* deprecating VTY cmd "protocol (cbsp|sbcap)" (make it a NO-OP)
And of course not merging this commit as it is when applying the above.
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/28718
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I47756dddd8f9b8450ba14c914614fd2391d5486e
Gerrit-Change-Number: 28718
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Thu, 21 Jul 2022 20:01:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
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 (#3).
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/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/28712
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: Id4f83ec6b0b14e556b1caa9c80e7f68d062fec57
Gerrit-Change-Number: 28712
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset
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
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/28712
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: Id4f83ec6b0b14e556b1caa9c80e7f68d062fec57
Gerrit-Change-Number: 28712
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset