Fix delay latency minimum: ubridge rejects latency <= 0

Align validation rules with ubridge source: delay latency must be > 0
(packet_filter.c delay_setup line 182). Update FILTERS definition in
link.py and test cases accordingly.
This commit is contained in:
YueGuobin committed 2026-05-30 01:21:00 +08:00
1 parent 458eff6020
commit 0aa0467b02
3 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ FILTERS = [
"name": "Delay",
"description": "Delay packets in milliseconds. You can add jitter in milliseconds (+/-) of the delay",
"parameters": [
{"name": "Latency", "minimum": 0, "maximum": 32767, "unit": "ms", "type": "int"},
{"name": "Latency", "minimum": 1, "maximum": 32767, "unit": "ms", "type": "int"},
{"name": "Jitter (-/+)", "minimum": 0, "maximum": 32767, "unit": "ms", "type": "int"},
],
},