openbsc[master]: bsc_vty: Add VTY command to test CTRL TRAP feature

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/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jul 19 10:03:50 UTC 2017


Patch Set 1:

No, we cannot.  Generating a trap requires us to know the ctrl_handle, which is returned to whoever creates a control interface instance.  The only way to solve this would be to keep a library-internal list of all control interface instances that have been allocated, and then iterate over the list to dispatch the command to all control interface instances.

Alternatively, we could restrict the number of control interface instances of any application to '1' and keep a static pointer to that inside the library to generate the trap.

Etiher way, it would be quite a change to the semantics of how the API works right now, so I went for the straight-forward approach.

-- 
To view, visit https://gerrit.osmocom.org/3278
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1d2ec38290dc94797c1b365d9b733e5215ab7d1
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-HasComments: No



More information about the gerrit-log mailing list