Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <yhang@vmware.com>
  • Loading branch information
hangyan committed May 14, 2024
1 parent 7015500 commit 4b65b01
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/apis/crd/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,16 @@ type TCPHeader struct {

// Packet includes header info.
type Packet struct {
SrcIP string `json:"srcIP,omitempty"`
DstIP string `json:"dstIP,omitempty"`
// Length is the IP packet length (includes the IPv4 or IPv6 header length).
Length int32 `json:"length,omitempty"`
SrcIP string `json:"srcIP,omitempty"`
DstIP string `json:"dstIP,omitempty"`
IPv6Header *IPv6Header `json:"ipv6Header,omitempty"`
TransportHeader TransportHeader `json:"transportHeader,omitempty"`
TransportHeader TransportHeader `json:"transportHeader"`
}

// PacketCaptureFirstNConfig contains the config for the FirstN type capture. The only supported parameter is
// `Number` at the moment, meaning capturing the first specified number of packets in a flow.
type PacketCaptureFirstNConfig struct {
Number int32 `json:"number,omitempty"`
Number int32 `json:"number"`
}

const DefaultPacketCaptureTimeout uint16 = 60
Expand Down

0 comments on commit 4b65b01

Please sign in to comment.