Skip to content

Commit

Permalink
network events: more values in metadata (aquasecurity#1762)
Browse files Browse the repository at this point in the history
add packet length and the network interface from which it comes.
  • Loading branch information
roikol authored May 17, 2022
1 parent c35ee50 commit 36f21d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions types/trace/network_trace.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package trace

type PktMeta struct {
SrcIP string `json:"src_ip"`
DstIP string `json:"dst_ip"`
SrcPort uint16 `json:"src_port"`
DstPort uint16 `json:"dst_port"`
Protocol uint8 `json:"protocol"`
SrcIP string `json:"src_ip"`
DstIP string `json:"dst_ip"`
SrcPort uint16 `json:"src_port"`
DstPort uint16 `json:"dst_port"`
Protocol uint8 `json:"protocol"`
PacketLen uint32 `json:"packet_len"`
Iface string `json:"iface"`
}

0 comments on commit 36f21d4

Please sign in to comment.