Skip to content

Commit

Permalink
update packet structure
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <yhang@vmware.com>
  • Loading branch information
hangyan committed Aug 22, 2024
1 parent 7d4f8ac commit 0023c7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
9 changes: 2 additions & 7 deletions build/charts/antrea/crds/packetcapture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ spec:
packet:
type: object
properties:
ipHeader:
type: object
properties:
protocol:
type: integer
minimum: 0
maximum: 255
ipv6Header:
type: object
properties:
Expand Down Expand Up @@ -131,6 +124,8 @@ spec:
type: integer
minimum: 0
maximum: 255
icmp:
type: object
timeout:
type: integer
minimum: 1
Expand Down
6 changes: 0 additions & 6 deletions pkg/apis/crd/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,6 @@ type TransportHeader struct {

// ICMPEchoRequestHeader describes spec of an ICMP echo request header.
type ICMPEchoRequestHeader struct {
// ID is the ICMPEchoRequestHeader ID.
ID *int32 `json:"id,omitempty"`
// Sequence is the ICMPEchoRequestHeader sequence.
Sequence *int32 `json:"sequence,omitempty"`
}

// UDPHeader describes spec of a UDP header.
Expand All @@ -420,8 +416,6 @@ type TCPHeader struct {

// Packet includes header info.
type Packet struct {
SrcIP *string `json:"srcIP,omitempty"`
DstIP *string `json:"dstIP,omitempty"`
IPv6Header *IPv6Header `json:"ipv6Header,omitempty"`
TransportHeader TransportHeader `json:"transportHeader"`
}
Expand Down
22 changes: 1 addition & 21 deletions pkg/apis/crd/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0023c7e

Please sign in to comment.