diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-23 19:08:55 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-23 19:08:55 +0800 |
commit | dbd16fe59a1aefac4df77c7e31ffba87d74d9659 (patch) | |
tree | 2eb07bccb96b86fb70e891ed1aac0daf963b2429 /openbsc/tests/bsc-nat/bsc_nat_test.c | |
parent | e0478de1445273517aaa014ba32fd54ad9a0fb3b (diff) |
nat: u_int8_t -> uint8_t
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index d49ab6c93..e39ec0c3c 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -32,26 +32,26 @@ #include <stdio.h> /* test messages for ipa */ -static u_int8_t ipa_id[] = { +static uint8_t ipa_id[] = { 0x00, 0x01, 0xfe, 0x06, }; /* SCCP messages are below */ -static u_int8_t gsm_reset[] = { +static uint8_t gsm_reset[] = { 0x00, 0x12, 0xfd, 0x09, 0x00, 0x03, 0x05, 0x07, 0x02, 0x42, 0xfe, 0x02, 0x42, 0xfe, 0x06, 0x00, 0x04, 0x30, 0x04, 0x01, 0x20, }; -static const u_int8_t gsm_reset_ack[] = { +static const uint8_t gsm_reset_ack[] = { 0x00, 0x13, 0xfd, 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x01, 0x00, 0xfe, 0x04, 0x43, 0x5c, 0x00, 0xfe, 0x03, 0x00, 0x01, 0x31, }; -static const u_int8_t gsm_paging[] = { +static const uint8_t gsm_paging[] = { 0x00, 0x20, 0xfd, 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x01, 0x00, 0xfe, 0x04, 0x43, 0x5c, 0x00, 0xfe, 0x10, @@ -60,7 +60,7 @@ static const u_int8_t gsm_paging[] = { }; /* BSC -> MSC connection open */ -static const u_int8_t bssmap_cr[] = { +static const uint8_t bssmap_cr[] = { 0x00, 0x2c, 0xfd, 0x01, 0x01, 0x02, 0x03, 0x02, 0x02, 0x04, 0x02, 0x42, 0xfe, 0x0f, 0x1f, 0x00, 0x1d, 0x57, 0x05, @@ -71,45 +71,45 @@ static const u_int8_t bssmap_cr[] = { }; /* MSC -> BSC connection confirm */ -static const u_int8_t bssmap_cc[] = { +static const uint8_t bssmap_cc[] = { 0x00, 0x0a, 0xfd, 0x02, 0x01, 0x02, 0x03, 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, }; /* MSC -> BSC released */ -static const u_int8_t bssmap_released[] = { +static const uint8_t bssmap_released[] = { 0x00, 0x0e, 0xfd, 0x04, 0x00, 0x00, 0x03, 0x01, 0x02, 0x03, 0x00, 0x01, 0x0f, 0x02, 0x23, 0x42, 0x00, }; /* BSC -> MSC released */ -static const u_int8_t bssmap_release_complete[] = { +static const uint8_t bssmap_release_complete[] = { 0x00, 0x07, 0xfd, 0x05, 0x01, 0x02, 0x03, 0x00, 0x00, 0x03 }; /* both directions IT timer */ -static const u_int8_t connnection_it[] = { +static const uint8_t connnection_it[] = { 0x00, 0x0b, 0xfd, 0x10, 0x01, 0x02, 0x03, 0x01, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, }; /* error in both directions */ -static const u_int8_t proto_error[] = { +static const uint8_t proto_error[] = { 0x00, 0x05, 0xfd, 0x0f, 0x22, 0x33, 0x44, 0x00, }; /* MGCP wrap... */ -static const u_int8_t mgcp_msg[] = { +static const uint8_t mgcp_msg[] = { 0x00, 0x03, 0xfc, 0x20, 0x20, 0x20, }; /* location updating request */ -static const u_int8_t bss_lu[] = { +static const uint8_t bss_lu[] = { 0x00, 0x2e, 0xfd, 0x01, 0x91, 0x45, 0x14, 0x02, 0x02, 0x04, 0x02, 0x42, 0xfe, 0x0f, 0x21, 0x00, 0x1f, 0x57, 0x05, @@ -131,7 +131,7 @@ static const uint8_t pag_resp[] = { }; struct filter_result { - const u_int8_t *data; + const uint8_t *data; const u_int16_t length; const int dir; const int result; @@ -253,7 +253,7 @@ static void test_filter(void) #include "bsc_data.c" -static void copy_to_msg(struct msgb *msg, const u_int8_t *data, unsigned int length) +static void copy_to_msg(struct msgb *msg, const uint8_t *data, unsigned int length) { msgb_reset(msg); msg->l2h = msgb_put(msg, length); @@ -567,7 +567,7 @@ static void test_mgcp_parse(void) } struct cr_filter { - const u_int8_t *data; + const uint8_t *data; int length; int result; int contype; |