mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
netfilter: nf_flow_table: set default timeout after successful insertion
commit110e48725dupstream. Set up the default timeout for this new entry otherwise the garbage collector might quickly remove it right after the flowtable insertion. Fixes:ac2a66665e("netfilter: add generic flow table infrastructure") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dbc29aff8d
commit
2a0aa8a06a
@@ -203,7 +203,7 @@ int flow_offload_add(struct nf_flowtable *flow_table, struct flow_offload *flow)
|
||||
return err;
|
||||
}
|
||||
|
||||
flow->timeout = (u32)jiffies;
|
||||
flow->timeout = (u32)jiffies + NF_FLOW_TIMEOUT;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(flow_offload_add);
|
||||
|
||||
Reference in New Issue
Block a user