YueGuobin ced73574b4
Fix delay filter validation: ensure delay: [0, X] returns proper error message
This fix addresses the issue where delay: [0, X] configurations were being
silently dropped instead of returning validation errors.

Changes:
- Created new utility function filter_inactive_filters() in packet_filter_validation.py
- Implemented smart filtering logic for delay filter that checks both latency and jitter:
  * delay: [0, 0] → User wants to disable delay, filter out silently
  * delay: [0, X] where X > 0 → Invalid config, keep for validation error
  * delay: [X, X] where X > 0 → Normal configuration, validate normally
- Simplified link.py update_filters() method to use the new utility function
- Added comprehensive tests for the new filtering logic

Before this fix:
- delay: [0, 100] would be silently dropped with no error message
- Users wouldn't know their configuration was invalid

After this fix:
- delay: [0, 100] returns proper error: "delay parameter Latency must be between 1 and 32767 ms, got: 0"
- delay: [0, 0] is correctly handled as intentional disable
- Normal delay configurations continue to work as expected
2026-05-31 22:35:58 +08:00
..
2024-11-18 11:46:42 +10:00
2021-04-13 18:46:50 +09:30
2021-04-17 18:36:32 +09:30
2023-01-05 12:38:00 +08:00
2021-12-02 18:07:09 +10:30
2026-03-05 12:38:28 +08:00
2024-04-23 16:52:28 +07:00
2021-04-13 18:46:50 +09:30
2021-04-13 18:37:58 +09:30
2021-04-13 18:46:50 +09:30