mirror of
https://github.com/soypat/lneto.git
synced 2026-08-20 06:29:03 +00:00
up hardcoded number of IP protocols to 3 (ICMP,TCP,UDP)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user