From: Patrick McHardy <kaber@trash.net>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH] stmt: rename nat "random-fully" option to "fully-random"
Date: Thu, 11 Dec 2014 22:07:21 +0000 [thread overview]
Message-ID: <1418335641-24383-1-git-send-email-kaber@trash.net> (raw)
Use proper english for full randomization option.
Signed-off-by: Patrick McHardy
---
src/parser_bison.y | 4 ++--
src/scanner.l | 2 +-
src/statement.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 6c7a036..515a11a 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -378,7 +378,7 @@ static void location_update(struct location *loc, struct location *rhs, int n)
%token MASQUERADE "masquerade"
%token REDIRECT "redirect"
%token RANDOM "random"
-%token RANDOM_FULLY "random-fully"
+%token FULLY_RANDOM "fully-random"
%token PERSISTENT "persistent"
%token QUEUE "queue"
@@ -1462,7 +1462,7 @@ nf_nat_flags : nf_nat_flag
;
nf_nat_flag : RANDOM { $$ = NF_NAT_RANGE_PROTO_RANDOM; }
- | RANDOM_FULLY { $$ = NF_NAT_RANGE_PROTO_RANDOM_FULLY; }
+ | FULLY_RANDOM { $$ = NF_NAT_RANGE_PROTO_RANDOM_FULLY; }
| PERSISTENT { $$ = NF_NAT_RANGE_PERSISTENT; }
;
diff --git a/src/scanner.l b/src/scanner.l
index 72b5447..1723159 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -321,7 +321,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"masquerade" { return MASQUERADE; }
"redirect" { return REDIRECT; }
"random" { return RANDOM; }
-"random-fully" { return RANDOM_FULLY; }
+"fully-random" { return FULLY_RANDOM; }
"persistent" { return PERSISTENT; }
"ll" { return LL_HDR; }
diff --git a/src/statement.c b/src/statement.c
index 2587d27..83abfea 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -287,7 +287,7 @@ static void print_nf_nat_flags(uint32_t flags)
}
if (flags & NF_NAT_RANGE_PROTO_RANDOM_FULLY) {
- printf("%srandom-fully", delim);
+ printf("%sfully-random", delim);
delim = ",";
}
--
2.1.0
reply other threads:[~2014-12-11 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418335641-24383-1-git-send-email-kaber@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).