aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/ng_nat.4
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2007-05-22 12:23:39 +0000
committerAlexander Motin <mav@FreeBSD.org>2007-05-22 12:23:39 +0000
commite842c54054b846061bf92d0f8a23ee3126ede6a9 (patch)
treeb18790a55032e9649ec725f4024ba2fc0e740bb8 /share/man/man4/ng_nat.4
parent179f56e1962ac7c81e0d8a6b2e3fc2fa75aab48a (diff)
downloadsrc-e842c54054b846061bf92d0f8a23ee3126ede6a9.tar.gz
src-e842c54054b846061bf92d0f8a23ee3126ede6a9.zip
Add support for setmode and settarget messages.
Approved by: glebius (mentor)
Notes
Notes: svn path=/head/; revision=169867
Diffstat (limited to 'share/man/man4/ng_nat.4')
-rw-r--r--share/man/man4/ng_nat.421
1 files changed, 21 insertions, 0 deletions
diff --git a/share/man/man4/ng_nat.4 b/share/man/man4/ng_nat.4
index 3d6d04fdde33..dcb521f7fa7b 100644
--- a/share/man/man4/ng_nat.4
+++ b/share/man/man4/ng_nat.4
@@ -60,6 +60,27 @@ This node type supports the generic control messages, plus the following:
Configure aliasing address for a node.
After both hooks have been connected and aliasing address was configured,
a node is ready for aliasing operation.
+.It Dv NGM_NAT_SET_MODE Pq Li setmode
+Set node's operation mode using supplied
+.Vt "struct ng_nat_mode".
+.Bd -literal
+struct ng_nat_mode {
+ uint32_t flags;
+ uint32_t mask;
+};
+/* Supported flags: */
+#define NG_NAT_LOG 0x01
+#define NG_NAT_DENY_INCOMING 0x02
+#define NG_NAT_SAME_PORTS 0x04
+#define NG_NAT_UNREGISTERED_ONLY 0x10
+#define NG_NAT_RESET_ON_ADDR_CHANGE 0x20
+#define NG_NAT_PROXY_ONLY 0x40
+#define NG_NAT_REVERSE 0x80
+.Ed
+.It Dv NGM_NAT_SET_TARGET Pq Li settarget
+Configure target address for a node.
+When an incoming packet not associated with any pre-existing aliasing
+link arrives at the host machine, it will be sent to the specified address.
.El
.Sh SHUTDOWN
This node shuts down upon receipt of a