add stackbasic test

This commit is contained in:
soypat
2025-04-05 17:17:32 -03:00
parent ba9124b079
commit 70a3bbbe2f
4 changed files with 102 additions and 33 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ func (sb *StackBasic) Recv(frame []byte) error {
if err != nil {
return err
}
if *ifrm.DestinationAddr() != sb.ip {
dst := ifrm.DestinationAddr()
if *dst != sb.ip {
return errors.New("packet not for us")
}
sb.validator.ResetErr()