🦄 refactor(plugin_manager): refactor intrinsic topic name
This commit is contained in:
@@ -249,7 +249,7 @@ static void *work_thread(void *arg)
|
||||
defraged_pkt = NULL;
|
||||
pkt = &packets[i];
|
||||
|
||||
plugin_manager_on_packet_ingress(plug_mgr, pkt);
|
||||
plugin_manager_on_packet_input(plug_mgr, pkt);
|
||||
if (packet_is_fragment(pkt))
|
||||
{
|
||||
defraged_pkt = ip_reassembly_packet(ip_reass, pkt, now_ms);
|
||||
@@ -260,7 +260,7 @@ static void *work_thread(void *arg)
|
||||
else
|
||||
{
|
||||
pkt = defraged_pkt;
|
||||
plugin_manager_on_packet_ingress(plug_mgr, defraged_pkt);
|
||||
plugin_manager_on_packet_input(plug_mgr, defraged_pkt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -286,18 +286,18 @@ static void *work_thread(void *arg)
|
||||
{
|
||||
packet_set_session_id(pkt, session_get_id(sess));
|
||||
}
|
||||
plugin_manager_on_session_ingress(sess, pkt);
|
||||
plugin_manager_on_session_input(sess, pkt);
|
||||
|
||||
fast_path:
|
||||
plugin_manager_on_session_egress(sess, pkt);
|
||||
plugin_manager_on_session_output(sess, pkt);
|
||||
if (pkt == defraged_pkt)
|
||||
{
|
||||
plugin_manager_on_packet_egress(plug_mgr, defraged_pkt);
|
||||
plugin_manager_on_packet_egress(plug_mgr, &packets[i]);
|
||||
plugin_manager_on_packet_output(plug_mgr, defraged_pkt);
|
||||
plugin_manager_on_packet_output(plug_mgr, &packets[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
plugin_manager_on_packet_egress(plug_mgr, pkt);
|
||||
plugin_manager_on_packet_output(plug_mgr, pkt);
|
||||
}
|
||||
|
||||
if (sess && session_get_current_state(sess) == SESSION_STATE_DISCARD)
|
||||
|
||||
Reference in New Issue
Block a user