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: Re: [Wireshark-dev] request help for packet capture using libpcap

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


From: "Luis EG Ontanon" <luis@xxxxxxxxxxx>
Date: Tue, 6 May 2008 14:36:00 +0200

Nothing captured?
Unflushed output?

 24 bytes is the pcap file header and no packets.


On Tue, May 6, 2008 at 1:10 PM,  <atdev.queries@xxxxxxxxx> wrote:
>
>
> Hello ,
>
> I have been trying to write a small application using libpcap library.
> Purpose is to capture some live network packets(say 100 packets) and store
> them in a file (pcap_savefile).
>
> Please refer the attachment for the code.
>
> As per my understanding the pcap_savefile should be in "pcap" format as this
> is the default file format for libpacp.
> But when I pass this file to wireshark, it does not show any packet data.
> Also the size of the pcap_savefile is just around 24 bytes for 100 packets.
> So I was wondering whether the programm is actually capturing any network
> packet.
>
> Could anyone please suggest how I can improve the programe and store the
> data in pcap format.
>
> Thanks in advance.
>
> Regards,
> Atdev
>
>  Please do not print this email unless it is absolutely necessary.
>
>  The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should
> check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
>  www.wipro.com
> _______________________________________________
>  Wireshark-dev mailing list
>  Wireshark-dev@xxxxxxxxxxxxx
>  http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
>



-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan

  • References:
    • [Wireshark-dev] request help for packet capture using libpcap
      • From: atdev.queries
  • Prev by Date: [Wireshark-dev] request help for packet capture using libpcap
  • Next by Date: [Wireshark-dev] buildbot failure in Wireshark (development) on Windows-XP-x86
  • Previous by thread: [Wireshark-dev] request help for packet capture using libpcap
  • Next by thread: Re: [Wireshark-dev] request help for packet capture using libpcap
  • Index(es):
    • Date
    • Thread

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