mirror of
https://github.com/soypat/lneto.git
synced 2026-08-08 08:53:40 +00:00
add stackbasic test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user