Ask Your Question

Revision history [back]

How can I filter-out a range of IP Addresses belonging to a given subnet (and not the whole subnet)

Let's say I have a subnet defined as and that I want to discard any message originating from addresses through

How can I do that?

Documentation shows that operators <, <=, > and >= can be used with single-number values like frame.len but how can it be used with IP Addresses? Can they directly handle a IP Address in the format? Do we have to use the numerical value of the IP Address and compare it to a 32-bit number? If so, how should every field of the IP Address be mapped into that 32-bit number?