diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-10-02 02:34:39 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-10-05 14:23:33 +0000 |
commit | 22f34710d9e4d237ae72fb1dd835c261c0652d87 (patch) | |
tree | f9643af0e9ea227111e2bd507036bd0333f65f2c /src/gb/gprs_ns2_vty.c | |
parent | 1fac6f7452d2aa6cb28b6af9858646c0badf60e4 (diff) |
ns2: vty: on `show ns` add information of NS binds
Change-Id: I6cef42749555e577d5573f2ed8b8bce4cf842a98
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r-- | src/gb/gprs_ns2_vty.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c index 824466ba..3decf4e9 100644 --- a/src/gb/gprs_ns2_vty.c +++ b/src/gb/gprs_ns2_vty.c @@ -303,10 +303,21 @@ static void dump_nse(struct vty *vty, const struct gprs_ns2_nse *nse, bool stats } } +static void dump_bind(struct vty *vty, const struct gprs_ns2_vc_bind *bind, bool stats) +{ + if (bind->dump_vty) + bind->dump_vty(bind, vty, stats); +} + static void dump_ns(struct vty *vty, const struct gprs_ns2_inst *nsi, bool stats, bool persistent_only) { + struct gprs_ns2_vc_bind *bind; struct gprs_ns2_nse *nse; + llist_for_each_entry(bind, &nsi->binding, list) { + dump_bind(vty, bind, stats); + } + llist_for_each_entry(nse, &nsi->nse, list) { dump_nse(vty, nse, stats, persistent_only); } |