- Add utun VPN daemon with config parsing, control socket, routing, and TUN interface - Refactor net_emulator/u_async to support multiple independent instances - Replace linked-list timeout management with heap-based implementation - Fix timeout processing bug (process timeouts after select) - Add comprehensive random timeout and instance isolation tests - Update Makefile to build utun and new test targets
13 lines
773 B
Plaintext
13 lines
773 B
Plaintext
[127.0.0.1:20000] (порт 20000 форвардится на 10000)
|
|
prob=40,delay=100-130 (добавляет 100-130ms задержки)
|
|
(в остальных случаях drop)
|
|
|
|
[127.0.0.1:20001]
|
|
prob=10,delay=0-0 (отправляет без задержки в 10% случаев)
|
|
prob=80,delay=10-13 (добавляет 10-13ms задержки 80% вероятность)
|
|
(в остальных случаях drop)
|
|
|
|
[127.0.0.1:20001] (здесь вываливается с ошибкой - ip:порт уже занят)
|
|
prob=50,delay=0-0 (отправляет без задержки в 50% случаев)
|
|
prob=80,delay=10-13 (здесь он должен вывалиться с ошибкой парсинга - prob суммарный >100)
|