Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pcap

Read more about pcap

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pcap

Decoding ICMPv4 packets with libpcap and libnet

My program captures packets from the wireless interface and I can view all human-readable bytes using a function similar to hexdump -C. For one, I can't crack the right syntax for the BPF string so al...
test-img

lwoivresbo

c

ping

pcap

bpf

libnet

Votes: 0

Answers: 1

Latest Answer

The filter icmp[icmptype] == icmp-echoreply should do the job, at least it works with tcpdump so it should work with libpcap as well. Tested it with the following command sudo tcpdump -i any "icm...
test-img

Dylan Reimerink

Issue sniffing PCAP

I don't understand why my following code doesn't work properly. When I sniff ethernet the bytes that I receive are shifted by 2 bytes I send use sudo sendip -p ipv4 -p udp 127.0.0.1 -d r8 to send pack...
test-img

Amition

c

ethernet

pcap

Votes: 0

Answers: 1

Latest Answer

When I sniff ethernet the bytes that I receive are shifted by 2 bytes You're not sniffing Ethernet, you're sniffing the "any" device. That will capture on all interfaces, whether they're ...
test-img

user16139739

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved