diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-07-27 13:51:46 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-08-09 13:54:44 +0200 |
commit | c881c4912709be005cbb3ffb02ba06f13c69d24b (patch) | |
tree | c388ede895dc3c8fd9b98d7148a8d62337793e77 | |
parent | 775ac6f6b1c47066db58608f9497f0e4916bbcc4 (diff) |
introduce OSMO_SCCP_RI_NONE to indicate unset RI
Allows to automatically set an RI in future change
I75c67d289693f1c2a049ac61cf2b2097d6e5687d
"sccp-addr vty: set RI to SSN_PC when setting a point-code"
Change-Id: I6e2f31b023b08cba2f2ee8234e6108efcaca41c0
-rw-r--r-- | include/osmocom/sigtran/sccp_sap.h | 1 | ||||
-rw-r--r-- | src/osmo_ss7_vty.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h index 90da686..13b1022 100644 --- a/include/osmocom/sigtran/sccp_sap.h +++ b/include/osmocom/sigtran/sccp_sap.h @@ -54,6 +54,7 @@ enum osmo_scu_prim_type { /* Q.713 3.4.1 + RFC 3868 3.10.2.3 */ enum osmo_sccp_routing_ind { + OSMO_SCCP_RI_NONE, OSMO_SCCP_RI_GT, OSMO_SCCP_RI_SSN_PC, OSMO_SCCP_RI_SSN_IP, diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c index 164b7f2..b70f892 100644 --- a/src/osmo_ss7_vty.c +++ b/src/osmo_ss7_vty.c @@ -1048,6 +1048,11 @@ static void write_sccp_addressbook(struct vty *vty, case OSMO_SCCP_RI_SSN_IP: vty_out(vty, " routing-indicator IP%s", VTY_NEWLINE); break; + case OSMO_SCCP_RI_NONE: + break; + default: + vty_out(vty, " ! invalid routing-indicator value: %u%s", entry->addr.ri, VTY_NEWLINE); + break; } if (entry->addr.presence & OSMO_SCCP_ADDR_T_PC) vty_out(vty, " point-code %s%s", |