</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>NAT=</varname></term>
+ <listitem>
+ <para>Takes a boolean value. When true, CAKE performs a NAT lookup before applying
+ flow-isolation rules, to determine the true addresses and port numbers of the packet, to
+ improve fairness between hosts inside the NAT. This has no practical effect when
+ <varname>FlowIsolationMode=</varname> is <literal>none</literal> or <literal>flows</literal>,
+ or if NAT is performed on a different host. Defaults to unset, and the kernel's default is
+ used.</para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>
CAKE.OverheadBytes, config_parse_cake_overhead, QDISC_KIND_CAKE, 0
CAKE.CompensationMode, config_parse_cake_compensation_mode, QDISC_KIND_CAKE, 0
CAKE.FlowIsolationMode, config_parse_cake_flow_isolation_mode, QDISC_KIND_CAKE, 0
+CAKE.NAT, config_parse_cake_tristate, QDISC_KIND_CAKE, 0
ControlledDelay.Parent, config_parse_qdisc_parent, QDISC_KIND_CODEL, 0
ControlledDelay.Handle, config_parse_qdisc_handle, QDISC_KIND_CODEL, 0
ControlledDelay.PacketLimit, config_parse_controlled_delay_u32, QDISC_KIND_CODEL, 0
c->autorate = -1;
c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID;
c->flow_isolation_mode = _CAKE_FLOW_ISOLATION_MODE_INVALID;
+ c->nat = -1;
return 0;
}
return log_link_error_errno(link, r, "Could not append TCA_CAKE_FLOW_MODE attribute: %m");
}
+ if (c->nat >= 0) {
+ r = sd_netlink_message_append_u32(req, TCA_CAKE_NAT, c->nat);
+ if (r < 0)
+ return log_link_error_errno(link, r, "Could not append TCA_CAKE_NAT attribute: %m");
+ }
+
r = sd_netlink_message_close_container(req);
if (r < 0)
return log_link_error_errno(link, r, "Could not close container TCA_OPTIONS: %m");
if (streq(lvalue, "AutoRateIngress"))
dest = &c->autorate;
+ else if (streq(lvalue, "NAT"))
+ dest = &c->nat;
else
assert_not_reached();
/* Flow isolation parameters */
CakeFlowIsolationMode flow_isolation_mode;
+ int nat;
} CommonApplicationsKeptEnhanced;
OverheadBytes=
CompensationMode=
FlowIsolationMode=
+NAT=
[TrafficControlQueueingDiscipline]
Parent=
NetworkEmulatorDelaySec=