Skip to content

Commit

Permalink
Implement from_tunnel field handling in flagString
Browse files Browse the repository at this point in the history
Handle from_tunnel in flagString. So that we can show from_tunnel value
to CLI output.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
  • Loading branch information
YutaroHayakawa committed Apr 12, 2023
1 parent 5931f43 commit 3630bbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/maps/ctmap/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ const (
ProxyRedirect
DSR
FromL7LB
Reserved1
FromTunnel
MaxFlags
)

Expand Down Expand Up @@ -554,6 +556,9 @@ func (c *CtEntry) flagsString() string {
if (c.Flags & FromL7LB) != 0 {
sb.WriteString("FromL7LB ")
}
if (c.Flags & FromTunnel) != 0 {
sb.WriteString("FromTunnel ")
}

unknownFlags := c.Flags
unknownFlags &^= MaxFlags - 1
Expand Down

0 comments on commit 3630bbe

Please sign in to comment.