[libss7-commits] mattf: trunk r113 - /trunk/mtp3.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Oct 5 11:02:11 CDT 2007


Author: mattf
Date: Fri Oct  5 11:02:10 2007
New Revision: 113

URL: http://svn.digium.com/view/libss7?view=rev&rev=113
Log:
Make the ANSI point code format more familiar looking

Modified:
    trunk/mtp3.c

Modified: trunk/mtp3.c
URL: http://svn.digium.com/view/libss7/trunk/mtp3.c?view=diff&rev=113&r1=112&r2=113
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Fri Oct  5 11:02:10 2007
@@ -447,7 +447,11 @@
 	ss7_message(ss7, "\tNetwork Indicator: %d Priority: %d User Part: %s\n", ni, priority, userpart2str(userpart));
 	ss7_dump_buf(ss7, 1, sio, 1);
 	rlsize = get_routinglabel(ss7->switchtype, sif, &rl);
-	ss7_message(ss7, "\tOPC %d DPC %d SLS %d\n", rl.opc, rl.dpc, rl.sls);
+	if (ss7->switchtype == SS7_ANSI)
+		ss7_message(ss7, "\tOPC %d-%d-%d DPC %d-%d-%d SLS %d\n", (rl.opc >> 16) & 0xff, (rl.opc >> 8) & 0xff, rl.opc & 0xff, 
+				(rl.dpc >> 16) & 0xff, (rl.dpc >> 8) & 0xff, rl.dpc & 0xff, rl.sls);
+	else
+		ss7_message(ss7, "\tOPC %d DPC %d SLS %d\n", rl.opc, rl.dpc, rl.sls);
 	ss7_dump_buf(ss7, 1, sif, rlsize);
 
 	/* Pass it to the correct user part */




More information about the libss7-commits mailing list