diff options
author | Eugene Grosbein <eugen@FreeBSD.org> | 2020-02-12 00:46:33 +0000 |
---|---|---|
committer | Eugene Grosbein <eugen@FreeBSD.org> | 2020-02-12 00:46:33 +0000 |
commit | 04777538e7381726cec143bd00c08de064106ce8 (patch) | |
tree | 8763e177d3fc2efdcd9684f1649c7897847b0aec /sbin | |
parent | 49f384cb477bd32a4d1e85f0bf9fe7499f6b3e72 (diff) | |
download | src-04777538e7381726cec143bd00c08de064106ce8.tar.gz src-04777538e7381726cec143bd00c08de064106ce8.zip |
ipfw nat: add missing bits after r357092 (RFC 6598/Carrier Grade NAT)
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Reviewed by: Lutz Donnerhacke
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D23448
Notes
Notes:
svn path=/head/; revision=357787
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipfw/nat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/ipfw/nat.c b/sbin/ipfw/nat.c index 6c861e7c2c27..51fc9da17108 100644 --- a/sbin/ipfw/nat.c +++ b/sbin/ipfw/nat.c @@ -793,6 +793,7 @@ ipfw_config_nat(int ac, char **av) case TOK_SAME_PORTS: case TOK_SKIP_GLOBAL: case TOK_UNREG_ONLY: + case TOK_UNREG_CGN: case TOK_RESET_ADDR: case TOK_ALIAS_REV: case TOK_PROXY_ONLY: @@ -887,6 +888,9 @@ ipfw_config_nat(int ac, char **av) case TOK_UNREG_ONLY: n->mode |= PKT_ALIAS_UNREGISTERED_ONLY; break; + case TOK_UNREG_CGN: + n->mode |= PKT_ALIAS_UNREGISTERED_CGN; + break; case TOK_SKIP_GLOBAL: n->mode |= PKT_ALIAS_SKIP_GLOBAL; break; |