Page MenuHomeFreeBSD

D23461.id82827.diff
No OneTemporary

D23461.id82827.diff

diff --git a/share/man/man4/ng_nat.4 b/share/man/man4/ng_nat.4
--- a/share/man/man4/ng_nat.4
+++ b/share/man/man4/ng_nat.4
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 12, 2018
+.Dd January 24, 2021
.Dt NG_NAT 4
.Os
.Sh NAME
@@ -75,7 +75,13 @@
#define NG_NAT_RESET_ON_ADDR_CHANGE 0x20
#define NG_NAT_PROXY_ONLY 0x40
#define NG_NAT_REVERSE 0x80
+#define NG_NAT_UNREGISTERED_CGN 0x100
.Ed
+.Pp
+The corresponding libalias flags can be found by replacing the
+.Vt "NG_NAT"
+prefix with
+.Vt "PKT_ALIAS" .
.It Dv NGM_NAT_SET_TARGET Pq Ic settarget
Configure target address for a node.
When an incoming packet not associated with any pre-existing aliasing
diff --git a/sys/netgraph/ng_nat.h b/sys/netgraph/ng_nat.h
--- a/sys/netgraph/ng_nat.h
+++ b/sys/netgraph/ng_nat.h
@@ -54,6 +54,7 @@
#define NG_NAT_RESET_ON_ADDR_CHANGE 0x20
#define NG_NAT_PROXY_ONLY 0x40
#define NG_NAT_REVERSE 0x80
+#define NG_NAT_UNREGISTERED_CGN 0x100
#define NG_NAT_DESC_LENGTH 64
#define NG_NAT_REDIRPROTO_ADDR (IPPROTO_MAX + 3) /* LibAlias' LINK_ADDR, also unused in in.h */
diff --git a/sys/netgraph/ng_nat.c b/sys/netgraph/ng_nat.c
--- a/sys/netgraph/ng_nat.c
+++ b/sys/netgraph/ng_nat.c
@@ -961,6 +961,8 @@
res |= PKT_ALIAS_PROXY_ONLY;
if (x & NG_NAT_REVERSE)
res |= PKT_ALIAS_REVERSE;
+ if (x & NG_NAT_UNREGISTERED_CGN)
+ res |= PKT_ALIAS_UNREGISTERED_CGN;
return (res);
}

File Metadata

Mime Type
text/plain
Expires
Thu, May 21, 3:15 PM (11 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33398441
Default Alt Text
D23461.id82827.diff (1 KB)

Event Timeline