On Thursday 2022-10-06 13:54, Phil Sutter wrote: >> >- else >> >+ else if (bits < sizeof(a) * 8) >> > printf("/%d", bits); >> >> I would rather see it stay. >> - iproute2 also always prints the /128 suffix >> - test parsers need not special case the absence of /128 >> [as in, when something reads e.g. iptables-save output] > >[...] OTOH we're a bit inconsistent: xtables_ip(6)mask_to_numeric() explicitly >omits output if it would print "/32" or "/128". We could consider just changing those two functions. Any third-party program that interprets our output already has to deal with a "/N" suffix in the same spot anyway.