mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-17 16:00:26 +03:00
Fixed some compilation bug and added reconf
This commit is contained in:
@@ -108,7 +108,7 @@ notify_signal_to_service(NanoAttachment *attachment, uint32_t cur_session_id)
|
||||
/// NANO_AGAIN if the response indicates an old session ID and polling should be retried,
|
||||
/// NANO_TIMEOUT if a timeout occurs while waiting for the response.
|
||||
///
|
||||
static NanoCommunicationResult
|
||||
NanoCommunicationResult
|
||||
signal_for_session_data(NanoAttachment *attachment, uint32_t cur_session_id, AttachmentDataType chunk_type)
|
||||
{
|
||||
struct pollfd s_poll;
|
||||
@@ -1811,6 +1811,19 @@ PopResponseVerdictFromQueue(NanoAttachment *attachment)
|
||||
// Not yet supported
|
||||
response.verdict = ATTACHMENT_VERDICT_INSPECT;
|
||||
break;
|
||||
case TRAFFIC_VERDICT_RECONF:
|
||||
write_dbg(
|
||||
attachment,
|
||||
reply_p->session_id,
|
||||
DBG_LEVEL_TRACE,
|
||||
"Verdict reconf received from the nano service"
|
||||
);
|
||||
reset_attachment_config(attachment);
|
||||
response.verdict = ATTACHMENT_VERDICT_INSPECT;
|
||||
break;
|
||||
case TRAFFIC_VERDICT_DELAYED:
|
||||
response.verdict = ATTACHMENT_VERDICT_INSPECT;
|
||||
break;
|
||||
default:
|
||||
write_dbg(
|
||||
attachment,
|
||||
|
||||
Reference in New Issue
Block a user