mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
netgraph(4) callouts need to be executed in the network epoch.
This commit is contained in:
parent
56cc8b7595
commit
4c02c20c32
1 changed files with 3 additions and 0 deletions
|
|
@ -3772,11 +3772,14 @@ ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1,
|
|||
static void
|
||||
ng_callout_trampoline(void *arg)
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
item_p item = arg;
|
||||
|
||||
NET_EPOCH_ENTER(et);
|
||||
CURVNET_SET(NGI_NODE(item)->nd_vnet);
|
||||
ng_snd_item(item, 0);
|
||||
CURVNET_RESTORE();
|
||||
NET_EPOCH_EXIT(et);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue