Project

General

Profile

Actions

Bug #5581

closed

osmo_stream_srv_link_get_sockname() only supports showing 1st IP address

Added by pespin almost 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/16/2022
Due date:
% Done:

100%

Spec Reference:

Description

osmo_stream_cli_get_sockname API has a similar issue. osmo_stream_srv_get_sockname doesn't exist, but when adding it this ticket should be taken into account (see #5580).

The osmo_stream API allows setting up SCTP sockets, which support multihomin. The osmo_stream API already supports setting several addresses and using them. However, if an SCTP socket is setup with multiple local IP addresses, osmo_stream_cli_get_sockname() will only return the first one in the string returned. This is misleading and should be fixed.

I had to manually check /proc/net/sctp/eps to see the issue.


Related issues

Related to libosmo-netif - Feature #5580: Missing API: osmo_stream_srv_get_sockname()Resolvedpespin06/16/2022

Actions
Actions #1

Updated by pespin almost 2 years ago

  • Related to Feature #5580: Missing API: osmo_stream_srv_get_sockname() added
Actions #2

Updated by laforge over 1 year ago

  • Assignee set to msuraev
Actions #3

Updated by msuraev over 1 year ago

  • Status changed from New to In Progress

That's a bit tricky as we rely on getsockname() in libosmocore for socket description which is (silently!) incompatible with multi-homed SCTP. Should bedoable via sctp_getladdrs() though: see https://www.rfc-editor.org/rfc/rfc6458

Note: according to https://datatracker.ietf.org/doc/html/rfc4960 multi-homed SCTP has to use the same port number.

Actions #4

Updated by msuraev over 1 year ago

  • Status changed from In Progress to Stalled
  • % Done changed from 0 to 50
Actions #5

Updated by laforge 5 months ago

  • Assignee deleted (msuraev)
Actions #6

Updated by pespin 4 months ago

  • Assignee set to pespin
Actions #8

Updated by pespin 4 months ago

  • Status changed from Stalled to Feedback
  • % Done changed from 50 to 90

Fixed by:
https://gerrit.osmocom.org/c/libosmo-netif/+/35287 stream_srv_link: osmo_stream_srv_link_get_sockname() now returns the full ...

Once merged, the ticket can be closed.

Actions #9

Updated by pespin 3 months ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)