path: root/include
diff options
authorHarald Welte <>2019-10-19 17:40:22 +0200
committerHarald Welte <>2019-10-19 22:31:04 +0200
commitecb2cf1a312230def1b2b4ed4b9bd4ea499cf48a (patch)
treedf6e2b0ba1c00d7577a6ed1df6ef98d748fb7695 /include
parentd747573feb55fe93e4fa84c46bf5f2c9d1c70642 (diff)
ipa: VTY config option to explicitly enable/disable SCCP patching
When receiving SCCP messages from an IPA peer/ASP, osmo-stp so far unconditionally inserted origin/destination point codes int the SCCP called / calling party addresses. This behaviro is now made optional with the introduction of the following per-AS configuration: "point-code override patch-sccp (disabled|both)" The default behavior is switched from 'both' to 'disabled' at the same time. Change-Id: I535e2170adadfe755d2bcbf5bbf4556bebb77737 Closes: OS#4219
Diffstat (limited to 'include')
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h
index 14e2b7c..d6ae1d4 100644
--- a/include/osmocom/sigtran/osmo_ss7.h
+++ b/include/osmocom/sigtran/osmo_ss7.h
@@ -290,6 +290,11 @@ osmo_ss7_asp_protocol_name(enum osmo_ss7_asp_protocol mode)
int osmo_ss7_asp_protocol_port(enum osmo_ss7_asp_protocol prot);
+enum osmo_ss7_as_patch_sccp_mode {
+ OSMO_SS7_PATCH_NONE, /* no patching of SCCP */
+ OSMO_SS7_PATCH_BOTH, /* patch both OPC and DPC into SCCP addresses */
struct osmo_ss7_as {
/*! entry in 'ref osmo_ss7_instance.as_list */
struct llist_head list;
@@ -314,6 +319,7 @@ struct osmo_ss7_as {
uint8_t qos_class;
struct {
uint32_t dpc;
+ enum osmo_ss7_as_patch_sccp_mode sccp_mode;
} pc_override;
struct osmo_ss7_asp *asps[16];