Bug #4855
ns2: Better formatting for show ns
Start date:
11/06/2020
Due date:
% Done:
20%
Spec Reference:
Description
The current formatting when running show ns looks rather weird and confusing:
OsmoGbProxy# show ns UDP bind: 127.0.0.100:23000 dcsp: 0 1 NS-VC: udp)[127.0.0.100]:23000<101>[192.168.100.239]:7777 NSEI 101 :47808 <> 192.168.100.239:7777Remote: udp)[127.0.0.100]:23000<101>[192.168.100.239]:7777 UDP
Checklist
- Implement gprs_ns2_ll_str_buf for FR_GRE
- Implement gprs_ns2_ll_str_buf for E1
History
#1 Updated by daniel 3 months ago
- % Done changed from 0 to 20
With https://gerrit.osmocom.org/c/libosmocore/+/21062 the output looks better already:
OsmoGbProxy# show ns UDP bind: 127.0.0.100:23000 dcsp: 0 1 NS-VC: udp)[127.0.0.100]:23000<101>[192.168.100.239]:7777 NSEI 101 udp)[127.0.0.100]:23000<101>[192.168.100.239]:7777
We still print the nsvc twice - once in dump_bind and once in dump_nse. dump_bind doesn't seem to be implemented for every bind, though and the ns2_ll_str function is quite incomplete when dealing with non-udp nsvc.