From 81a029a4e46bb7c62b2401ec055fe44c5b7568cd Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 1 Aug 2017 15:07:20 +0200 Subject: 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 --- include/osmocom/sigtran/sccp_sap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/sigtran/sccp_sap.h') 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); -- cgit v1.2.3