smol changes

This commit is contained in:
soypat
2025-04-06 01:13:35 -03:00
parent 70a3bbbe2f
commit fb9c0a831e
2 changed files with 14 additions and 5 deletions
+4
View File
@@ -33,6 +33,10 @@ func (sb *StackBasic) SetAddr(addr netip.Addr) {
sb.ip = addr.As4()
}
func (sb *StackBasic) Addr() netip.Addr {
return netip.AddrFrom4(sb.ip)
}
func (sb *StackBasic) Recv(frame []byte) error {
ifrm, err := ipv4.NewFrame(frame)
if err != nil {