up hardcoded number of IP protocols to 3 (ICMP,TCP,UDP)

This commit is contained in:
Patricio Whittingslow
2026-04-10 19:43:08 -03:00
parent 41dffbb074
commit 68907ef898
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ func (s *StackAsync) Reset(cfg StackConfig) error {
return err
}
s.link.SetAcceptMulticast(cfg.AcceptMulticast)
const ipNodes = 2 // UDP, TCP ports.
const ipNodes = 3 // 3 IP protocols possible: UDP, TCP, ICMP.
err = s.ip.Reset(addr, ipNodes)
if err != nil {
return err