diff options
Diffstat (limited to 'tests/patching/patching_test.c')
-rw-r--r-- | tests/patching/patching_test.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/patching/patching_test.c b/tests/patching/patching_test.c index 8bd0d17..ecbad83 100644 --- a/tests/patching/patching_test.c +++ b/tests/patching/patching_test.c @@ -5,39 +5,39 @@ #include <stdio.h> #include <string.h> -u_int8_t pkt125[] = { +uint8_t pkt125[] = { 0x06, 0x01, 0x04, 0x00, 0x00, 0x01, 0x0b, 0x00, 0x09, 0x01, 0x0b, 0x03, 0x01, 0x0b, 0x25, 0x01, 0x00, 0x02 }; -u_int8_t pkt125_res[] = { +uint8_t pkt125_res[] = { 0x06, 0x01, 0x04, 0x00, 0x00, 0x01, 0x0b, 0x00, 0x09, 0x01, 0x0b, 0x03, 0x01, 0x0a, 0x11, 0x01, 0x00, 0x02 }; -u_int8_t pkt28[] = { +uint8_t pkt28[] = { 0x06, 0x01, 0x05, 0x2b, 0x00, 0x01, 0x09, 0x00, 0x07, 0x02, 0x21, 0x08, 0x2c, 0x02, 0x40, 0x11 }; -u_int8_t pkt28_res[] = { +uint8_t pkt28_res[] = { 0x06, 0x01, 0x05, 0x2b, 0x00, 0x01, 0x09, 0x00, 0x07, 0x02, 0x21, 0x09, 0x2c, 0x02, 0x40, 0x25 }; -u_int8_t reset_ack[] = { +uint8_t reset_ack[] = { 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x0a, 0x00, 0xfe, 0x04, 0x43, 0x5c, 0x00, 0xfe, 0x03, 0x00, 0x01, 0x31 }; -u_int8_t cc[] = { +uint8_t cc[] = { 0x02, 0x01, 0x04, 0x00, 0x01, 0x01, 0xb4, 0x02, 0x01, 0x00 }; struct result { - u_int8_t *input; + uint8_t *input; int inp_len; - const u_int8_t *expected; + const uint8_t *expected; int exp_len; int result; }; @@ -75,14 +75,14 @@ static struct result results[] = { }, }; -static u_int8_t udt_with_poi[] = { +static uint8_t udt_with_poi[] = { 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x0a, 0x00, 0xfe, 0x04, 0x43, 0x5c, 0x00, 0xfe, 0x10, 0x00, 0x0e, 0x44, 0x04, 0x01, 0x00, 0x01, 0x00, 0x01, 0x1e, 0x05, 0x1e, 0x00, 0x00, 0x00, 0x40 }; -static const u_int8_t udt_without_poi[] = { +static const uint8_t udt_without_poi[] = { 0x09, 0x00, 0x03, 0x05, 0x07, 0x02, 0x42, 0xfe, 0x02, 0x42, 0xfe, @@ -90,7 +90,7 @@ static const u_int8_t udt_without_poi[] = { 0x04, 0x01, 0x00, 0x01, 0x00, 0x01, 0x1e, 0x05, 0x1e, 0x00, 0x00, 0x00, 0x40 }; -static u_int8_t cr_with_poi [] = { +static uint8_t cr_with_poi [] = { 0x01, 0x01, 0x04, 0x00, 0x02, 0x02, 0x06, 0x04, 0xc3, 0x5c, 0x00, 0xfe, 0x0f, 0x21, 0x00, 0x1f, 0x57, 0x05, 0x08, @@ -99,7 +99,7 @@ static u_int8_t cr_with_poi [] = { 0x81, 0x08, 0x29, 0x47, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x01, 0x00 }; -static const u_int8_t cr_without_poi [] = { +static const uint8_t cr_without_poi [] = { 0x01, 0x01, 0x04, 0x00, 0x02, 0x02, 0x04, 0x02, 0x42, 0xfe, 0x0f, 0x21, 0x00, 0x1f, 0x57, 0x05, 0x08, @@ -108,7 +108,7 @@ static const u_int8_t cr_without_poi [] = { 0x81, 0x08, 0x29, 0x47, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x01, 0x00 }; -static u_int8_t cr2_without_poi[] = { +static uint8_t cr2_without_poi[] = { 0x01, 0x00, 0x00, 0x03, 0x02, 0x02, 0x04, 0x02, 0x42, 0xfe, 0x0f, 0x1f, 0x00, 0x1d, 0x57, 0x05, 0x08, 0x00, 0x72, 0xf4, 0x80, 0x20, 0x1d, 0xc3, @@ -140,12 +140,12 @@ static struct result rewrite_results_to_msc[] = { }; -u_int8_t paging_cmd[] = { +uint8_t paging_cmd[] = { 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x0a, 0x00, 0xfe, 0x04, 0x43, 0x5c, 0x00, 0xfe, 0x10, 0x00, 0x0e, 0x52, 0x08, 0x08, 0x29, 0x80, 0x10, 0x76, 0x10, 0x77, 0x46, 0x05, 0x1a, 0x01, 0x06 }; -u_int8_t paging_cmd_patched[] = { +uint8_t paging_cmd_patched[] = { 0x09, 0x00, 0x03, 0x07, 0x0b, 0x04, 0x43, 0x02, 0x00, 0xfe, 0x04, 0x43, 0x01, 0x00, 0xfe, 0x10, 0x00, 0x0e, 0x52, 0x08, 0x08, 0x29, 0x80, 0x10, |