[PATCH nft] netlink_delinearize: restore listing of host byteorder set elements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



before:

table ip filter {
        chain test {
                cpu { 67108864, 50331648, 33554432}
        }
}

after:

table ip filter {
        chain test {
                cpu { 4, 3, 2 }
        }
}

Related to 525323352904 ("expr: add set_elem_expr as container for set element
attributes").

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
Note: This patch applies to the next-4.1 branch.

 src/netlink_delinearize.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index b1ce911..ea60c86 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -824,6 +824,10 @@ static void integer_type_postprocess(struct expr *expr)
 			integer_type_postprocess(i);
 		}
 		break;
+	case EXPR_SET_ELEM:
+		expr_set_type(expr->key, expr->dtype, expr->byteorder);
+		integer_type_postprocess(expr->key);
+		break;
 	default:
 		break;
 	}
-- 
1.7.10.4

--
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




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux