I'm taking a brief look at how osmo-hnbgw would send a Reset to the CN.
So I'd like to be notified when osmo-hnbgw first establishes a link to a
CN component, and then send a Reset message on it.
I see there's an OSMO_SCU_PRIM_N_CONNECT, but am I right that this is
related to actual messages being sent on the link, and can't be used to
get notified about a connection per se?
Link establishment traces out as:
hnbgw_cnlink_init()
osmo_sua_client_connect()
osmo_stream_cli_open2() <-- includes a timer that retries connecting
In the osmo_stream_cli_* API, there's a connect_cb, but it isn't used from
osmo_sua_client_*.
So I would
* add a connect cb to struct osmo_sua_user (and osmo_sua_user_create())
* call it from a static cb fed to osmo_stream_cli_set_connect_cb()
in osmo_sua_client_connect()
Yes?
Thanks,
~Neels