Jan Engelhardt wrote: > The code is already there, it just was not documented. Also use > UINT16_MAX instead and pretty-print iptables's -L/-S output. > > @@ -97,9 +97,11 @@ length_print(const void *ip, const struct xt_entry_match *match, int numeric) > > printf("length %s", info->invert ? "!" : ""); > if (info->min == info->max) > - printf("%u ", info->min); > + printf("== %u ", info->min); > + else if (info->max == UINT16_MAX) > + printf(">= %u ", info->min); > else > - printf("%u:%u ", info->min, info->max); > + printf("%u..%u ", info->min, info->max); I prefer to keep using ":", this is what we use everywhere else for ranges. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html