kohler / click

The Click modular router: fast modular packet processing and analysis
Other
734 stars 324 forks source link

Numeric ranges #477

Open trackpick opened 3 years ago

trackpick commented 3 years ago

This adds a syntax for numeric ranges to clicktest. We've been running with this at Meraki since about September. As part of this I added an algorithm that converts a numeric range to a regex. Ideally we'd be able to check ranges without using regexes but that would require a significant rework of clicktest. Figured it was easier to write the algorithm.