-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature to perform pkt capturing on RX sides of interfaces #415
Conversation
292018e
to
23d27f2
Compare
@byteocean PR branch doesnt compile in the CI. |
4e3236f
to
b7601a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this is one big PR. I tried to cover all I saw, but that unfortunately means the comments are ranging from bugs to nitpicks, so please do not be discouraged, as a whole it looks really nicely done.
What will happen if you call for example And then what if you call From the architecture, I understand why this "additive" behavior could be easier on the service, but on our last sync on this we talked about this being without any state, so I am trying to clarify how this works now. (and also if we indeed do have a state, we would need a |
How is isolation handled? Currently only IP-IP packets are allowed into dpservice, so this traffic will not enter it. |
Not extra isolation is needed. as we could just use native tcpdump on the pf ports, these extra packets will be captured together with other host packets. if a filter is applied to tcpdump to match udp ports, then only these extra packets will be written to file. IPv6 is also no problem, as they are part of the payload of UDP, and the extra bits for outer IPv6 and UDP can be stripped out by the tool in the readme. |
the code is adjusted a bit to leave no state in between and operations on the interface set (union or subtraction) are not allowed. Additive behaviour was not part of the intention. To start capturing on a new set of interfaces, the stopping command has to be called first. Otherwise, the second start simply failed. this point is documented. |
b9dfd43
to
24ca48c
Compare
24ca48c
to
3f785d2
Compare
f5bb2d1
to
b0817e4
Compare
1ab2cc2
to
8c70068
Compare
…les for pkt capturing
…enrich error types when init capturing
3b08995
to
4a02a0c
Compare
4a02a0c
to
ef08cc6
Compare
ef08cc6
to
9463c1e
Compare
9699e38
to
7dd5333
Compare
…dded grpc to get capture op status
7dd5333
to
61e826c
Compare
Signed-off-by: Guvenc Gulce <[email protected]>
The details are documented in the committed file capture_offloaded_rx_pkts.md