SUA on-link cb?

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Mon Apr 4 13:57:07 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20160404/753ea57d/attachment.bin>


More information about the OpenBSC mailing list