From d1b1f271511e159077c21f5c9e8ea89844d73462 Mon Sep 17 00:00:00 2001 From: wanshuangcheng Date: Mon, 8 Apr 2024 15:43:40 +0800 Subject: [PATCH] chore: fix typo in comment Signed-off-by: wanshuangcheng --- common/process/searcher_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/process/searcher_windows.go b/common/process/searcher_windows.go index 5b3d59b5..4678efb5 100644 --- a/common/process/searcher_windows.go +++ b/common/process/searcher_windows.go @@ -133,7 +133,7 @@ func (s *searcher) Search(b []byte, ip netip.Addr, port uint16) (uint32, error) } // according to MSDN, only the lower 16 bits of dwLocalPort are used and the port number is in network endian. - // this field can be illustrated as follows depends on different machine endianess: + // this field can be illustrated as follows depends on different machine endianness: // little endian: [ MSB LSB 0 0 ] interpret as native uint32 is ((LSB<<8)|MSB) // big endian: [ 0 0 MSB LSB ] interpret as native uint32 is ((MSB<<8)|LSB) // so we need an syscall.Ntohs on the lower 16 bits after read the port as native uint32