bug in ss7 with linkset (slc) not equal to 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi.
we have corrected a bug in ss7 stack when slc is not equal to 0.

File : mtp3.c
Function : set_routinglabel

Old code :

                case SS7_ITU:
                        buf[0] = rl->dpc & 0xff;
                        buf[1] = ((rl->dpc >> 8) & 0x3f) | ((rl->opc << 6) &
0xc0);
                        buf[2] = (rl->opc >> 2) & 0xff;
                        buf[3] = ((rl->opc >> 10) & 0x0f) | (rl->sls &
0xf0);
                        return 4;



Modified code:

                case SS7_ITU:
                        buf[0] = rl->dpc & 0xff;
                        buf[1] = ((rl->dpc >> 8) & 0x3f) | ((rl->opc << 6) &
0xc0);
                        buf[2] = (rl->opc >> 2) & 0xff;
                        buf[3] = ((rl->opc >> 10) & 0x0f) | ((rl->sls <<4) &
0xf0);
                        return 4;

Slc/sls should occupy upper nibble position as specified by ITU.


-- 
A.K.V.Sai jayram
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20070511/3c7b2874/attachment.htm

[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux