summaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran/sccp_sap.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-08-01 15:07:20 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-09 09:53:35 +0000
commit81a029a4e46bb7c62b2401ec055fe44c5b7568cd (patch)
tree28b5ba4aa60872143c24b0a6fd9988ff1fc9a26e /include/osmocom/sigtran/sccp_sap.h
parent41b6803fd5d69b3a0f126e75d7734425c57644ee (diff)
sccp: add function to check sccp addresses
In order to catch invalid CS7 configurations, It is necessary to check if sccp addresses contain plausible address data. Change-Id: Ic6245288b0171eae10aa708403c1ddb584c92f38
Diffstat (limited to 'include/osmocom/sigtran/sccp_sap.h')
-rw-r--r--include/osmocom/sigtran/sccp_sap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h
index 732df2a..90da686 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -257,3 +257,5 @@ const char *osmo_sccp_name_by_addr(const struct osmo_sccp_addr *addr);
void osmo_sccp_local_addr_by_instance(struct osmo_sccp_addr *dest_addr,
const struct osmo_sccp_instance *inst,
uint32_t ssn);
+
+bool osmo_sccp_check_addr(struct osmo_sccp_addr *addr, uint32_t presence);