diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 01:48:42 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 19:34:28 +0100 |
commit | 1b5d846b461a5e197646b6db35b49ceb0d867481 (patch) | |
tree | 3a9ed3959682481746dcf6bb4d303cb332cb0ad4 /src/mtp_layer3.c | |
parent | b27c9626e8e1c17e5100dab664d6d904ce2f65ac (diff) |
mtp: Stop hardcoding the supported SSN inside the mtp_layer3.c
Stop hardcoding the supported ssn's inside the mtp_layer3.c and
make it possible to allow to configure this in the future.
Diffstat (limited to 'src/mtp_layer3.c')
-rw-r--r-- | src/mtp_layer3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c index aeb1866..83c8d63 100644 --- a/src/mtp_layer3.c +++ b/src/mtp_layer3.c @@ -402,8 +402,7 @@ static int mtp_link_sccp_data(struct mtp_link_set *link, struct mtp_level_3_hdr LOGP(DINP, LOGL_ERROR, "Unknown APOC: %u/%u\n", ntohs(prt->apoc), prt->apoc); type = SCCP_SSP; - } else if (prt->assn != 1 && prt->assn != 254 && - prt->assn != 7 && prt->assn != 8 && prt->assn != 146) { + } else if (!link->supported_ssn[prt->assn]) { LOGP(DINP, LOGL_ERROR, "Unknown affected SSN assn: %u\n", prt->assn); type = SCCP_SSP; |