As agreed upon with Arturo at NFWS, here is my version of the same fix for side-by-side comparison. This series allows 'nft monitor' to correctly reassemble ranges before printing them, also in the case of half-open ranges (used when a range spans to the end of the spectrum). To fix the zero segment problem, the last patch in this series has to retrieve the parsed set element from dummyset. For convenience, I created list_last_entry() macro and compound_expr_last() as shown in patches 2 and 3. Phil Sutter (4): monitor: Fix printing of range elements in named sets list: Introduce list_last_entry expression: Introduce compound_expr_last monitor: Ignore ranges' zero segment include/expression.h | 1 + include/list.h | 11 ++++++++ src/expression.c | 7 +++++ src/netlink.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 95 insertions(+), 4 deletions(-) -- 2.13.1 -- 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