phy: improvements and additions; document RMII

This commit is contained in:
Patricio Whittingslow
2026-01-21 18:54:45 -03:00
parent e13bb45854
commit 3396fd5265
5 changed files with 189 additions and 5 deletions
+6 -1
View File
@@ -11,6 +11,11 @@ import (
"github.com/soypat/lneto/tcp"
)
// Socket types
const (
sockSTREAM = 0x1
)
type BerkeleyConfig struct {
ListenerPoolConfig TCPPoolConfig
}
@@ -51,7 +56,7 @@ func (s StackBerkeley) Socket(ctx context.Context, network string, family, sotyp
case "udp", "udp4":
return nil, errors.New("udp not yet supported")
case "tcp", "tcp4":
if sotype != syscall.SOCK_STREAM {
if sotype != sockSTREAM {
return nil, errors.New("unsupported socket type")
}