[libss7-commits] mattf: trunk r128 - /trunk/mtp3.c
SVN commits to the libss7 project
libss7-commits at lists.digium.com
Thu Oct 25 18:23:06 CDT 2007
Author: mattf
Date: Thu Oct 25 18:23:05 2007
New Revision: 128
URL: http://svn.digium.com/view/libss7?view=rev&rev=128
Log:
Make sure we don't output incorrect message types for net_mng
Modified:
trunk/mtp3.c
Modified: trunk/mtp3.c
URL: http://svn.digium.com/view/libss7/trunk/mtp3.c?view=diff&rev=128&r1=127&r2=128
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Thu Oct 25 18:23:05 2007
@@ -219,7 +219,7 @@
return "Unknown";
}
-static int net_mng_dump(struct ss7 *ss7, struct mtp2 *mtp2, unsigned char *buf, int len)
+static int net_mng_dump(struct ss7 *ss7, struct mtp2 *mtp2, unsigned char userpart, unsigned char *buf, int len)
{
unsigned char *headerptr = buf + rl_size(ss7);
unsigned char h1, h0;
@@ -230,7 +230,8 @@
h0 = get_h0(headerptr);
ss7_message(ss7, "\tH0: %x H1: %x\n", h0, h1);
- ss7_message(ss7, "\tMessage type: %s\n", net_mng_message2str(h0, h1));
+ if (userpart == SIG_NET_MNG)
+ ss7_message(ss7, "\tMessage type: %s\n", net_mng_message2str(h0, h1));
ss7_dump_buf(ss7, 1, headerptr, 1);
return 0;
}
@@ -461,7 +462,7 @@
case SIG_NET_MNG:
case SIG_STD_TEST:
case SIG_SPEC_TEST:
- return net_mng_dump(ss7, link, sif, siflen);
+ return net_mng_dump(ss7, link, userpart, sif, siflen);
case SIG_ISUP:
return isup_dump(ss7, link, sif + rlsize, siflen - rlsize);
case SIG_SCCP:
More information about the libss7-commits
mailing list