wirefilter icon indicating copy to clipboard operation
wirefilter copied to clipboard

Added support for Floats

Open nethunters-dev opened this issue 3 years ago • 2 comments

Added support for float type, uses ordered-float crate for float Eq and Hash.

nethunters-dev avatar Jan 08 '21 19:01 nethunters-dev

Thank you for your contribution! I'll take a look next week :-)

marmeladema avatar Jan 08 '21 19:01 marmeladema

You're welcome.

A quick heads up; it currently uses f64::from_str to parse the float from strings. Looking at the documentation for WireShark filters I couldn't find any mention of it supporting floating point numbers in forms other than decimal. The lexical crate (with the radix feature) has the ability to parse floats with a custom radix.

nethunters-dev avatar Jan 08 '21 21:01 nethunters-dev