From 31e34c36797b1edac7d6c8883161358f890c9581 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Thu, 27 Jun 2013 19:35:21 +0200 Subject: nat: xml: rename node type to nat_type This patch renames the node to a more explicit . This will prevent in the future from confusing other nodes from other exprs. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/expr/nat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/expr/nat.c b/src/expr/nat.c index 89ab080..506c0b1 100644 --- a/src/expr/nat.c +++ b/src/expr/nat.c @@ -229,8 +229,8 @@ static int nft_rule_expr_nat_xml_parse(struct nft_rule_expr *e, char *xml) return -1; } - /* Get and set . Mandatory */ - node = mxmlFindElement(tree, tree, "type", NULL, NULL, + /* Get and set . Mandatory */ + node = mxmlFindElement(tree, tree, "nat_type", NULL, NULL, MXML_DESCEND_FIRST); if (node == NULL) { mxmlDelete(tree); @@ -336,9 +336,9 @@ nft_rule_expr_nat_snprintf_xml(char *buf, size_t size, /* Is a mandatory element. Provide a default, even empty */ if (nat->type == NFT_NAT_SNAT) - ret = snprintf(buf, len, "snat"); + ret = snprintf(buf, len, "snat"); else if (nat->type == NFT_NAT_DNAT) - ret = snprintf(buf, len, "dnat"); + ret = snprintf(buf, len, "dnat"); else ret = snprintf(buf, len, "unknown"); -- cgit v1.2.3