Do not enter epoch section recursively.
A pfil hook is already invoked in NET_EPOCH section.
This commit is contained in:
parent
e0b7b6d465
commit
b8c431f9c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345321
@ -1514,7 +1514,6 @@ int
|
||||
ipfw_nat64lsn(struct ip_fw_chain *ch, struct ip_fw_args *args,
|
||||
ipfw_insn *cmd, int *done)
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
struct nat64lsn_cfg *cfg;
|
||||
ipfw_insn *icmd;
|
||||
int ret;
|
||||
@ -1531,7 +1530,6 @@ ipfw_nat64lsn(struct ip_fw_chain *ch, struct ip_fw_args *args,
|
||||
|
||||
*done = 1; /* terminate the search */
|
||||
|
||||
NAT64LSN_EPOCH_ENTER(et);
|
||||
switch (args->f_id.addr_type) {
|
||||
case 4:
|
||||
ret = nat64lsn_translate4(cfg, &args->f_id, &args->m);
|
||||
@ -1551,7 +1549,6 @@ ipfw_nat64lsn(struct ip_fw_chain *ch, struct ip_fw_args *args,
|
||||
default:
|
||||
ret = cfg->nomatch_verdict;
|
||||
}
|
||||
NAT64LSN_EPOCH_EXIT(et);
|
||||
|
||||
if (ret != IP_FW_PASS && args->m != NULL) {
|
||||
m_freem(args->m);
|
||||
|
Loading…
Reference in New Issue
Block a user