Project

General

Profile

Actions

Bug #5809

open

applications disrespect potentially VTY-configured tcp/telnet port

Added by laforge over 1 year ago. Updated 6 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/05/2022
Due date:
% Done:

90%

Spec Reference:

Description

Originally we had the telnet_init() function, which later on was replaced by telnet_init_dynif() - both requiring the application to know the TCP port (and possibly local address)

Later we added VTY commands for this, and there is telnet_init_default() which uses vty_get_bind{port,addr}() to make sur the VTY-configured IP/port are used.

The problem is that most if not all applications still use telnet_init_dynif() to which they pass the "normal" port like OSMO_VTY_PORT_HNODEB.

This means the user may configure a different port in the VTY, but that port won't actually be used.

All the osmo-* projects need to be converted to telnet_init_default().

We should also [marc ase] deprecate the old telnet_init() and telnet_init_dynif() functions for exactly that reason.


Files


Checklist

  • osmo-uecups
  • osmo-trx
  • osmo-smlc
  • osmo-sip-connector
  • osmo-sgsn
  • osmo-pcap
  • osmo-msc
  • osmo-mgw
  • osmo-iuh (tests)
  • libosmo-sccp
  • osmo-bsc
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)