diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-10 22:39:07 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-10 22:45:24 +0100 |
commit | 68368dd99a2c98a4e8761f222f6174855d38bdd8 (patch) | |
tree | f3b7a92dea0f8649b7916344b44fd02bef9b8c50 /openbsc/tests/bsc-nat/bsc_data.c | |
parent | 50be1a9d7fb1042dc9946d4b7ce5d4b906adb6a3 (diff) |
nat: Implement clearing of TP-SRR flags from TPDUs
Match IMSI and destination address against a set of entries, if it
is matching the header will be modified and no sender report will be
requested. Change the test case to request the sender report and then
verify that this bit is reset to 0.
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_data.c')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_data.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_data.c b/openbsc/tests/bsc-nat/bsc_data.c index 101c57614..08b900b83 100644 --- a/openbsc/tests/bsc-nat/bsc_data.c +++ b/openbsc/tests/bsc-nat/bsc_data.c @@ -101,7 +101,7 @@ static const uint8_t smsc_rewrite[] = { 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, 0x01, 0x0c, 0x0f, 0x81, +0x00, 0x10, 0x50, 0x17, 0x21, 0x0c, 0x0f, 0x81, 0x00, 0x94, 0x51, 0x87, 0x86, 0x78, 0x46, 0xf5, 0x00, 0x00, 0x09, 0xcc, 0xb7, 0xbd, 0x0c, 0xca, 0xbf, 0xeb, 0x20 @@ -117,6 +117,16 @@ static const uint8_t smsc_rewrite_patched[] = { 0xca, 0xbf, 0xeb, 0x20 }; +static const uint8_t smsc_rewrite_patched_hdr[] = { +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, 0x01, 0x0c, 0x0f, 0x81, +0x00, 0x94, 0x51, 0x87, 0x86, 0x78, 0x46, 0xf5, +0x00, 0x00, 0x09, 0xcc, 0xb7, 0xbd, 0x0c, 0xca, +0xbf, 0xeb, 0x20 +}; + /* * MGCP messages |