-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hubble/parser: Populate traffic direction for trace and drop events
Where possible, populate the TrafficDirection field from the trace and drop notifications. This is done by comparing the `Source` endpoint field of the trace/drop event with source address of the captured IP packet. For drop notifications, we assume there are no ongoing connections which this packet belongs to and just compare the source address. For trace notifications however, we do assume that there might an ongoing connection. Therefore, we rely on the connection tracking state to revert the traffic direction for reply packages. For trace observation points without connection tracking, we do not assign any traffic direction. Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
- Loading branch information
Showing
2 changed files
with
178 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters