Commit Graph

11 Commits

Author SHA1 Message Date
Pau Espin 531ba5d729 Revert "Revert "Introduce SS7 IPv6 support""
Actual fix for the issue is applied in next commit.

This reverts commit ee81289297.

Change-Id: I8b66dd97f47f1b2b72c101b9ce4444e75eb744c0
2020-08-28 17:14:29 +02:00
Neels Hofmeyr ee81289297 Revert "Introduce SS7 IPv6 support"
This reverts commit 0b39f2cf7b.

Reason for revert:

Breaks ttcn test suites (at least for osmo-bsc) with osmo-stp error log:
"MTP-TRANSFER.req for DPC 187: no route!"

The breakage is fixed by only reverting the NULL -> "localhost" change
back to NULL. But the commit log indicated a reason for this, so rather
reverting the entire commit for now.

Change-Id: Ia97832f4e3ed646457d5c6eeba27352f1153edec
2020-08-28 08:10:06 +00:00
Pau Espin 0b39f2cf7b Introduce SS7 IPv6 support
In osmo_ss7_vty_go_parent, "127.0.0.1" is changed to "localhost" to let
local NSS decide whether to use IPv4 or IPv6. In newish systems, IPv6
::1 will be selected since IPv6 takes precedence over IPv4.

Similarly, the default source addr needs to be changed from NULL to "localhost"
since for some yet unknwon reason, getaddrinfo(AF_UNSPEC, NULL) returns
first IPv4 "0.0.0.0" and later "::", which is inconsistent with
getaddrinfo("localhost") result, resulting in src=IPv4(0.0.0.0) and
dst=IPv6(::1), which is incompatible and will fail.
In any case, this change doesn't affect users of osmo_sccp_simple_client
because the APIs set both src and dst addresses.

Change-Id: I69c48819b70635c92fa404cafd917af7802d517c
Depends: libosmo-netif.git Change-Id Ie6bb17a9af6ca21d5e350f9c9d2d74c97c5a00af
2020-08-24 10:34:38 +02:00
Philipp Maier ed01782610 doc: make sure all log categories are set to level notice
Lets make sure all logging levels are set to notice

Change-Id: I3b17aa4354f30b55da8fc77f4fe6af0373de7983
2020-05-12 11:29:18 +00:00
Harald Welte a9ff416745 don't use 'debug' log level in example configs
Related: OS#2577
Change-Id: I16807f827f958d48519871355115715b753edfcb
2020-03-19 14:15:30 +00:00
Pau Espin 2c3ff8c81b tests: Introduce test for multi-homing STP features
Config file sets omo-stp instance to bind on 2 IP addresses, and then
the test verfies through linux /proc/net/sctp/* that binding is done
correctly and that it can be reached from another remote address to one
of the configured addresses.

Change-Id: Ifa11b1fc882dff415405f62024e94bed67228866
2019-10-22 19:38:53 +00:00
Harald Welte edfd86b295 osmo-stp.cfg: Ensure example config is well-formed
Change-Id: I042486249ae1390a4fedbcf356e488451277788f
2018-09-25 20:14:08 +02:00
Pau Espin 13d47c043b Install sample cfg file to /etc/osmocom
Change-Id: I437e6ada9f391eece75b2f2e2af3bec4e8e9f6ce
2018-09-12 16:12:54 +02:00
Pau Espin b241a26449 build: Install example cfg files
Change-Id: I93b73032b9a01a1e121ecf7c0cfcf3d5558efc7f
2018-07-02 16:44:39 +02:00
Harald Welte bc4257867b osmo-stp: Remove hack to always enable debug logging
... and rather use the config file based logging configuration, like
other osmocom programs, too.

Change-Id: I7e0fb869bd778d8c276dc8afd16ecd7f1965b74a
2017-04-14 17:11:21 +02:00
Harald Welte 8cf687b2dc Add exampel osmo-stp configuration file
Change-Id: I45a04dc808e5a419bf5d68eb28c48cbec352b318
2017-04-14 17:11:21 +02:00