diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-21 14:46:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-27 10:40:44 +0200 |
commit | 73bbf8924588f5dc9088ac34ac3da2747b18f9dc (patch) | |
tree | 8d1600f0263997d5d5c8ccf574ad5af50ff9f9f1 /openbsc/tests/bsc-nat/bsc_data.c | |
parent | a914daf174e9d1a78bdccb1d5bd8b69ec8ff2280 (diff) |
nat: Implement rewriting, have a very basic test for that feature
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_data.c')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_data.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_data.c b/openbsc/tests/bsc-nat/bsc_data.c index f4dba0a3c..3cc22af7e 100644 --- a/openbsc/tests/bsc-nat/bsc_data.c +++ b/openbsc/tests/bsc-nat/bsc_data.c @@ -160,3 +160,28 @@ static const struct mgcp_patch_test mgcp_messages[] = { .port = 5555, }, }; + +/* CC Setup messages */ +static const uint8_t cc_setup_national[] = { + 0x00, 0x20, 0xfd, 0x06, 0x01, 0x12, + 0x6d, 0x00, 0x01, 0x19, 0x01, 0x00, 0x16, 0x03, + 0x05, 0x04, 0x06, 0x60, 0x04, 0x02, 0x00, 0x05, + 0x81, 0x5e, 0x06, 0x81, 0x10, 0x27, 0x33, 0x63, + 0x66, 0x15, 0x02, 0x11, 0x01 +}; + +static const uint8_t cc_setup_national_patched[] = { + 0x00, 0x22, 0xfd, 0x06, 0x01, 0x12, + 0x6d, 0x00, 0x01, 0x1b, 0x01, 0x00, 0x18, 0x03, + 0x05, 0x04, 0x06, 0x60, 0x04, 0x02, 0x00, 0x05, + 0x81, 0x5e, 0x08, 0x81, 0x00, 0x94, 0x71, 0x32, + 0x33, 0x66, 0xf6, 0x15, 0x02, 0x11, 0x01 +}; + +static const uint8_t cc_setup_international[] = { + 0x00, 0x22, 0xfd, 0x06, 0x01, 0x13, + 0xe7, 0x00, 0x01, 0x1b, 0x01, 0x00, 0x18, 0x03, + 0x45, 0x04, 0x06, 0x60, 0x04, 0x02, 0x00, 0x05, + 0x81, 0x5e, 0x08, 0x81, 0x00, 0x94, 0x71, 0x33, + 0x63, 0x66, 0x03, 0x15, 0x02, 0x11, 0x01 +}; |