-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support capture at dest in PacketCapture #6863
Comments
Hi @hangyan, is this and other issues related to PacketCapture (from 6860 till 6864) open or part of some other process like LFX mentorship? |
they maybe good candidates for the LFX mentorship but also open. If you are interested, feel free to started working on one. |
cc @antoninbas to confirm the candidate issues for LFX mentorship |
@luolanzone @hangyan I was thinking that #6864 would be a good candidate for the LFX mentorship program next term. Let me know what you think. @AryanBakliwal you're welcome to pick an issue to work on, but those PacketCapture issues may not necessary all be good first issues, and may involve a non trivial amount of work. |
My concern is that tcp flags support is tricky, tcpdump supports various filter syntax like So I think maybe this issue is not a good choice |
@hangyan I don't think we would need a parser as we would stick with simple CRD fields, and not "arbitrary" expressions. That may mean only supporting a subset of what tcpdump supports. A typical use cases may be "only capture packets with the SYN flag". Something like this may be a good tradeoff: // requirements are ORed
TCPFlags []TCPFlagsMatcher
type TCPFlagsMatcher struct {
Flags int32
Mask int32
} For example, to capture all TCP packets which are either SYN or RST packets, one could use: []TCPFlagsMatcher{
{
Flags: TCP_SYN,
Mask: TCP_SYN,
},
{
Flags: TCP_RST,
Mask: TCP_RST,
},
} And, to capture only SYN+ACK packets (for some reason...):
And, to capture all packets except the ones with the ACK bit set:
Of course, a simpler approach would be to have a single |
Sure, i'm ok with this too. Should we also considering align with Traceflow? In that case, |
Describe the problem/challenge you have
Currently PacketCapture can only capture packet in one location and it's usually the
source
pod. In some cases, it might be needed to capture on the dest location or both( to see the difference). If capture on both , we may results with 2 pcapng files as the result.Describe the solution you'd like
add new flag in the PacketCapture spec. Note this may cause confusion with #6862 ( bi-direction) . but it sure fine and they can work together.
Anything else you would like to add?
The text was updated successfully, but these errors were encountered: