From 4698d27f4c035ab6bfedf6b0d72761648889369b Mon Sep 17 00:00:00 2001 From: Wenbin WU Date: Fri, 26 Nov 2010 18:01:25 +0100 Subject: sccp_test: Add a test case for SCCP Addresses with POI --- tests/sccp/sccp_test.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/sccp/sccp_test.c b/tests/sccp/sccp_test.c index 35b4cb7..da1b081 100644 --- a/tests/sccp/sccp_test.c +++ b/tests/sccp/sccp_test.c @@ -903,12 +903,28 @@ static uint8_t ssn_out[] = { 0x02, 0x42, 0xfe, }; +const struct sockaddr_sccp sccp_poi_bssap = { + .sccp_family = 0, + .sccp_ssn = SCCP_SSN_BSSAP, + .poi = {0x01, 0x00}, + .use_poi = 1, +}; + +static uint8_t poi_out[] = { + 0x04, 0x43, 0x01, 0x00, 0xfe, +}; + static struct sccp_addr_tst sccp_addr_tst[] = { { .addr = &sccp_ssn_bssap, .output = ssn_out, .output_len = ARRAY_SIZE(ssn_out), }, + { + .addr = &sccp_poi_bssap, + .output = poi_out, + .output_len = ARRAY_SIZE(poi_out), + }, }; static void test_sccp_address() -- cgit v1.2.3