fix: use constant for TCP Timestamp option in clearTCPTimestamp

This commit is contained in:
SunBK201 2025-12-07 20:59:24 +08:00
parent c98014c352
commit 9591438b16

View File

@ -103,8 +103,7 @@ func (s *Server) clearTCPTimestamp(tcp *layers.TCP) bool {
newOptions := make([]layers.TCPOption, 0, len(tcp.Options))
for _, opt := range tcp.Options {
// TCP Timestamp option kind is 8
if opt.OptionType == 8 {
if opt.OptionType == layers.TCPOptionKindTimestamps {
modified = true
continue
}