pcap/pcap. h library usage examples for C programming

Asked

Viewed 53 times

0

In the previous post, I wanted to know how to read correctly a HEXA character, (by chance it was from a .PCAP file)... Which has already been resolved!

But now, the next step is already another: I need to "know how to interpret" the data obtained

THEN I ASK: I am working with TCPDUMP files, where my proposal is to "decompose" files. CAP to . CSV....

But I need to choose only the components of that file cap., that will be important.

But I’m having quite a hard time knowing how to pcap/pcap. h works... how to call your functions... or is like picking up those components I need on the site I did not find many examples...

for example: Data Rate: or SSI Signal: among others...

I wonder if anyone has examples of C codes using the pcap/pcap library. h...

Of course I already googled, but the impression I had is that the articles I found did not know very well what they were talking about.

Thank you.

  • I’m not sure, but extension would be pcap and not cap: https://en.wikipedia.org/wiki/Pcap

  • I think it better be answered in the other

  • Okay, please, how could I (or redo) this question in the other, because I could not.... if you explain to me I delete this post, and I accept your reply there! Thanks!

  • soh Peco who notes well that in that post I was having trouble interpreting hexa characters, char, and var....

  • I edited the post, I hope I managed to show the difference....

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.