summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenbin WU <wenbin87@gmail.com>2010-11-26 18:01:25 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-26 18:17:28 +0100
commit4698d27f4c035ab6bfedf6b0d72761648889369b (patch)
treef576e62050ee0eae76881ac9d923f76dd346dca5
parent6ecf8104c0e2fd6e01402c001160349e1810193a (diff)
sccp_test: Add a test case for SCCP Addresses with POI
-rw-r--r--tests/sccp/sccp_test.c16
1 files changed, 16 insertions, 0 deletions
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()