Ruleset analyzer for packet classification