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] about udp dissector

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


From: "Vladimir Zherdenovsky" <Vladimir.Zherdenovsky@xxxxxxxxxxxxxx>
Date: Fri, 2 Feb 2007 09:56:54 +0200

Hello,

 

I just want to understand how the udp dissector works and have misunderstanding of following codes lines:

 

  static e_udphdr udphstruct[4], *udph;
  static int udph_count=0;

  udph_count++;
  if(udph_count>=4){
     udph_count=0;
  }
  udph=&udphstruct[udph_count];

 

Could anybody explain why 4 and how it works?

Thanks,

vladimir

 

  • Follow-Ups:
    • Re: [Wireshark-dev] about udp dissector
      • From: ronnie sahlberg
  • Prev by Date: Re: [Wireshark-dev] blank makefile generated for custom dissector plugin
  • Next by Date: Re: [Wireshark-dev] about udp dissector
  • Previous by thread: Re: [Wireshark-dev] Display Filter References
  • Next by thread: Re: [Wireshark-dev] about udp dissector
  • Index(es):
    • Date
    • Thread

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