Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] E212 Mobile network code is not caculated correctly?

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Zhang, Long \(Roger\)" <zhangl@xxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Jan 2009 11:25:22 +0800

Hi,

 

I am developing based on Wireshark 1.0.0.  I found the mnc in E212 may not be caculated correctly.  The mnc for 3 digits is calculated as “mnc += 10 * mnc + mnc3;”. I think it should be “mnc = 10 * mnc + mnc3;”.  From E212 spec, I did not find algorithm to calculate mnc, but I think += is not correct. Is it a bug?

 

epan/dissectors/packet-e212.c

 

int

dissect_e212_mcc_mnc(tvbuff_t *tvb, proto_tree *tree, int offset){

 

……

 

        mcc = 100 * mcc1 + 10 * mcc2 + mcc3;

        mnc = 10 * mnc1 + mnc2;

        if (mnc3 != 0xf) {

                mnc += 10 * mnc + mnc3;

        }

……

        return offset;

}

 

Thanks,

Roger

  • Follow-Ups:
    • Re: [Wireshark-dev] E212 Mobile network code is not caculated correctly?
      • From: Pascal Quantin
  • Prev by Date: Re: [Wireshark-dev] Windows VS2008 compilation problem
  • Next by Date: Re: [Wireshark-dev] E212 Mobile network code is not caculated correctly?
  • Previous by thread: [Wireshark-dev] [ANNOUNCE] WinPcap 4.1 beta5 has been released
  • Next by thread: Re: [Wireshark-dev] E212 Mobile network code is not caculated correctly?
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation