From 3b3b534da81fbe127cb704918eb5974156686725 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 9 Jul 2010 20:59:00 +0200 Subject: update to sualibrary-0.1.4 released 2003-10-15 * In addition to 1.3 Contains : * SSNM support(DAUD, DAVA, DUNA). * improved ASP management support. * test user can initiate certain ASP and SSNM proecdures. * Correct some bugs * Compiles and runs on Linux, FreeBSD, Max OS X .... * Tested on IPv4 and IPV6 networks * interoperable with other SUA implementations * corresponds to sua draft v15 * requires SCTP implementation sctplib-1.0.0-pre19 from www.sctp.de --- sualibrary/sua/sua_datassoc.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'sualibrary/sua/sua_datassoc.cpp') diff --git a/sualibrary/sua/sua_datassoc.cpp b/sualibrary/sua/sua_datassoc.cpp index 8530b5e..2159c03 100644 --- a/sualibrary/sua/sua_datassoc.cpp +++ b/sualibrary/sua/sua_datassoc.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ /* - * $Id: sua_datassoc.cpp,v 1.8 2003/02/17 14:38:08 p82609 Exp $ + * $Id: sua_datassoc.cpp,v 1.9 2003/09/09 08:43:44 p82609 Exp $ * * SUA implementation according to SUA draft issue 6. * @@ -363,12 +363,22 @@ passive_associate( unsigned int sctp_assoc_id, &status ); +#ifdef DEBUG + cout << "SCTP association " << sctp_assoc_id <<" result = " << result<< "\n"; +#endif + +#ifdef DEBUG + cout << "number of asoc = " << num_of_instance << "\n"; +#endif while ((i <= num_of_instance) && !(assoc_found)){ assoc_found = (instance[i].Dest.nr_of_addrs == status.numberOfAddresses); if (assoc_found) { k = 0; found_addr = false; +#ifdef DEBUG + cout << "same number of addresses\n"; +#endif while ((k < instance[i].Dest.nr_of_addrs) && (!found_addr)) { j=0; @@ -380,6 +390,9 @@ passive_associate( unsigned int sctp_assoc_id, k++; } if (found_addr){ +#ifdef DEBUG + cout << "found same ip address\n"; +#endif assoc_found = ( found_addr && (instance[i].Dest.addrs[0].sin.sin_port == status.destPort)); assoc_instance_idx = i; } @@ -393,6 +406,9 @@ passive_associate( unsigned int sctp_assoc_id, { /* unknown association added */ /* not allowed: drop it */ +#ifdef DEBUG + cout << "not found ???\n"; +#endif assoc_instance_idx = 0; result = sctp_abort(sctp_assoc_id); } @@ -872,6 +888,10 @@ route_on_GTT ( global_title_str& dest_gt, dest_pc ); +#ifdef DEBUG + cout << "result of GT translation : " << result << "\n"; + cout << "dest IP address = " << dest_pc.ipvx.sa.sa_family << "\n"; +#endif sctp_assoc_id = route_on_IPpc( dest_pc.ipvx, org_pc.ipvx, sua_assoc_id -- cgit v1.2.3