aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_data.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-18 20:00:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-18 20:14:58 +0100
commit8e60f629e27f6a4cbb47479a1a69966c01890201 (patch)
tree7de85ad2d7cbe0d8f83eff89970f74229eede7c3 /openbsc/tests/bsc-nat/bsc_data.c
parentbe53012f9c14b1bf27b16f4fa2d0f58f8f0393ca (diff)
nat: Prepare to rewrite the TP-DA number of a SMS submit.
Introduce number rewriting of SMS-SUBMIT. Introduce a new list, move code around to help with finding a new number, somehow the number encoding for TP-DA is borked, 03.40 references 04.11 but the length appears to be strlen(number) without taken the type field into account.
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_data.c')
-rw-r--r--openbsc/tests/bsc-nat/bsc_data.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_data.c b/openbsc/tests/bsc-nat/bsc_data.c
index 08b900b83..d8a0c8706 100644
--- a/openbsc/tests/bsc-nat/bsc_data.c
+++ b/openbsc/tests/bsc-nat/bsc_data.c
@@ -127,6 +127,15 @@ static const uint8_t smsc_rewrite_patched_hdr[] = {
0xbf, 0xeb, 0x20
};
+static const uint8_t smsc_rewrite_num_patched[] = {
+0x00, 0x30, 0xfd, 0x06, 0x01, 0x13, 0x1e, 0x00,
+0x01, 0x29, 0x01, 0x03, 0x26, 0x09, 0x01, 0x23,
+0x00, 0x0c, 0x00, 0x07, 0x91, 0x36, 0x19, 0x08,
+0x00, 0x10, 0x50, 0x17, 0x21, 0x0c, 0x0f, 0x81,
+0x00, 0x23, 0x51, 0x87, 0x86, 0x78, 0x46, 0xf5,
+0x00, 0x00, 0x09, 0xcc, 0xb7, 0xbd, 0x0c, 0xca,
+0xbf, 0xeb, 0x20
+};
/*
* MGCP messages