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
+4 -4
View File
@@ -603,21 +603,21 @@ func FuzzTCBActions(f *testing.F) {
[]byte{actionSend, actionRecv, actionSend, actionRecv, actionSend, actionRecv},
)
f.Add(
0x2fefe_feefe,
int64(0x2fefe_feefe),
[]byte{actionSend, actionRecv, actionSend, actionClose, actionSend, actionRecv},
)
f.Add(
0x2fefe_feefe,
int64(0x2fefe_feefe),
[]byte{actionClose, actionRecv, actionSend, actionClose, actionSend, actionRecv},
)
recvsendSize := func(rng *rand.Rand) int {
return rng.Int() % mtu
}
f.Fuzz(func(t *testing.T, seed int, actions []byte) {
f.Fuzz(func(t *testing.T, seed int64, actions []byte) {
if len(actions) == 0 || len(actions) > 100 {
t.SkipNow()
}
rng := rand.New(rand.NewSource(int64(seed)))
rng := rand.New(rand.NewSource(seed))
var clientISS tcp.Value = tcp.Value(rng.Int31())
var serverISS tcp.Value = tcp.Value(rng.Int31())