TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Xdpcap: XDP Packet Capture

109 pointsby migueldemouraabout 6 years ago

6 comments

ffkabout 6 years ago
Fun fact, tcpdump is one of the BPF killer apps.<p>eBPF extends the BPF with a more modern architecture (e.g. 64 bit support) and being generalized so that it can support things like more fine grained security control in seccomp which limit what commands a userspace app can call.<p>Xdpcap seems like a logical progression of this path.
评论 #19746159 未加载
ilarumabout 6 years ago
I think IPv4 ethertype should be 0x0800, not 0x8000 as depicted in the annotated flow chart. The picture is correct, the accompanying textbox is not.
setheronabout 6 years ago
The tailcall and preconfigured entry points for all possible results seems excessive.<p>I wonder if there could have been a cleaner way with an upstream patch instead.<p>Maybe if you could add xdp filter at a given priority to make sure it runs first ?
binwiederhierabout 6 years ago
A little off topic: I love reading the cloud flare blog posts. They are always well written and super interesting. It looks like a very exciting place to work judging from what they get to work on.
评论 #19754159 未加载
bechampionabout 6 years ago
this looks close to <a href="https:&#x2F;&#x2F;github.com&#x2F;Netronome&#x2F;bpf-samples&#x2F;tree&#x2F;master&#x2F;xdpdump" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Netronome&#x2F;bpf-samples&#x2F;tree&#x2F;master&#x2F;xdpdump</a> . I&#x27;m a cloudflare user and i really like seeing this kind of things.
评论 #19749149 未加载
ncmncmabout 6 years ago
pcap files are all very well, but I want to run eBPF in the NIC and exfiltrate pcap to a user-space ring buffer. It doesn&#x27;t seem like eBPF has access to the DMA bandwidth I think I need. Am I wrong?