Skip to content

Use packet_mmap and PF_PACKET & SOCK_RAW for skb pcap and xmit.

Notifications You must be signed in to change notification settings

haodi-ioe/packet_mmap_txrx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gcc -o icmp_tx icmp_tx.c
sudo ./icmp_tx ens32


01:53:49.067485 IP ubuntu-linggguo > 120.52.139.65: ICMP echo request, id 7284, seq 1, length 64
01:53:49.068655 IP 120.52.139.65 > ubuntu-linggguo: ICMP echo reply, id 7284, seq 1, length 64
01:53:49.069679 IP 1.2.3.4 > 103.77.56.27: ICMP echo reply, id 7284, seq 1, length 64

About

Use packet_mmap and PF_PACKET & SOCK_RAW for skb pcap and xmit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages