aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-09-05 00:10:01 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-09-05 00:10:01 +0200
commitb114b73e5d22e3f9b396fa6af42d64b0b6cb7a02 (patch)
treefb4f12fe0da25ac8505957c8d5463b79ee87cc18 /include
parent44456920e567e67fb64cbfcac0c6842de6b03e78 (diff)
add OSMO_SCCP_ADDR_T_MASK for osmo_sccp_addr_cmp()
Avoid magic number 0xffffffff and rather provide a mask value for all address components. Change-Id: I13ff0858e496c4392b8e1590d62f7eb80f191a07
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/sigtran/sccp_sap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h
index 817ac45..de9b24c 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -51,6 +51,7 @@ enum osmo_scu_prim_type {
#define OSMO_SCCP_ADDR_T_SSN 0x0004 /* subsystem number */
#define OSMO_SCCP_ADDR_T_IPv4 0x0008
#define OSMO_SCCP_ADDR_T_IPv6 0x0010
+#define OSMO_SCCP_ADDR_T_MASK 0x001f
/* Q.713 3.4.1 + RFC 3868 3.10.2.3 */
enum osmo_sccp_routing_ind {