使用netcap抓不到网络包
- Dominant language
- Go
- Stars
- 699
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
在机器A上ping机器B,机器B的ip为x.x.x.x,网络接口为bond0,能够ping通。但是在机器B上用netcap抓包,执行正常无报错,但是没有任何数据输出。
机器A上执行ping:
$ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttl=53 time=30.9 ms
64 bytes from x.x.x.x: icmp_seq=2 ttl=53 time=30.8 ms
64 bytes from x.x.x.x: icmp_seq=3 ttl=53 time=30.9 ms
64 bytes from x.x.x.x: icmp_seq=4 ttl=53 time=30.9 ms
机器B上执行netcap抓不到数据包:
sudo ./netcap skb -f icmp_rcv@1 -e "host x.x.x.x" -i bond0
sudo ./netcap skb -f icmp_rcv@1 -e "host x.x.x.x"
Contributor guide
Research direction
Start by reproducing the shown ping and netcap skb commands on bond0, first with the icmp_rcv@1 filter and then with the host filter. Trace the skb capture and filter handling relevant to these options, and compare the observed output with the successful ICMP traffic. Done means netcap reports the packets received on machine B without errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100