|
@@ -409,6 +409,10 @@ nf_nat_setup_info(struct nf_conn *ct,
|
|
{
|
|
{
|
|
struct nf_conntrack_tuple curr_tuple, new_tuple;
|
|
struct nf_conntrack_tuple curr_tuple, new_tuple;
|
|
|
|
|
|
|
|
+ /* Can't setup nat info for confirmed ct. */
|
|
|
|
+ if (nf_ct_is_confirmed(ct))
|
|
|
|
+ return NF_ACCEPT;
|
|
|
|
+
|
|
NF_CT_ASSERT(maniptype == NF_NAT_MANIP_SRC ||
|
|
NF_CT_ASSERT(maniptype == NF_NAT_MANIP_SRC ||
|
|
maniptype == NF_NAT_MANIP_DST);
|
|
maniptype == NF_NAT_MANIP_DST);
|
|
BUG_ON(nf_nat_initialized(ct, maniptype));
|
|
BUG_ON(nf_nat_initialized(ct, maniptype));
|