Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to capture a data stream that already exists #235

Open
zfl112113 opened this issue Feb 5, 2025 · 0 comments
Open

Unable to capture a data stream that already exists #235

zfl112113 opened this issue Feb 5, 2025 · 0 comments

Comments

@zfl112113
Copy link

zfl112113 commented Feb 5, 2025

Unable to capture a data stream that already exists

From the container, ping the gateway ip of the namespace in which it resides, start ptcpdump in host with ptcpdump -i any --container-name [container_running_ping], no ping packets can be captured. restart ping command, can capture the ping packets now. That is, ptcpdump has to be started before the data transfer to be captured properly.
Is this the way it's supposed to be, or is there something wrong with my operation?

Expected behavior

Environment

  • ptcpdump version:
    ptcpdump version 0.31.0
    libpcap version 1.10.5 (with TPACKET_V3)

  • OS:
    Debian GNU/Linux 12 (bookworm)

  • Kernel:
    Linux bogon 6.1.0-29-amd64 Bump github.com/cilium/ebpf from 0.14.0 to 0.15.0 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64 GNU/Linux

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant