Skip to content

Commit

Permalink
[BPF] clean up stale ICMPv6 conntrack entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastigera committed Apr 23, 2024
1 parent dc49320 commit f4b77b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion felix/bpf/conntrack/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (t *Timeouts) EntryExpired(nowNanos int64, proto uint8, entry ValueInterfac
}
}
return "", false
case ProtoICMP:
case ProtoICMP, ProtoICMP6:
if age > t.ICMPLastSeen {
return "no traffic on ICMP flow for too long", true
}
Expand Down
7 changes: 4 additions & 3 deletions felix/bpf/conntrack/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ func MapV2() maps.Map {
}

const (
ProtoICMP = 1
ProtoTCP = 6
ProtoUDP = 17
ProtoICMP = 1
ProtoTCP = 6
ProtoUDP = 17
ProtoICMP6 = 58
)

func KeyFromBytes(k []byte) KeyInterface {
Expand Down

0 comments on commit f4b77b2

Please sign in to comment.