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_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.
|
/// 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)
|
signal_for_session_data(NanoAttachment *attachment, uint32_t cur_session_id, AttachmentDataType chunk_type)
|
||||||
{
|
{
|
||||||
struct pollfd s_poll;
|
struct pollfd s_poll;
|
||||||
@@ -1811,6 +1811,19 @@ PopResponseVerdictFromQueue(NanoAttachment *attachment)
|
|||||||
// Not yet supported
|
// Not yet supported
|
||||||
response.verdict = ATTACHMENT_VERDICT_INSPECT;
|
response.verdict = ATTACHMENT_VERDICT_INSPECT;
|
||||||
break;
|
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:
|
default:
|
||||||
write_dbg(
|
write_dbg(
|
||||||
attachment,
|
attachment,
|
||||||
|
|||||||
@@ -245,4 +245,7 @@ nano_send_metric_data_sender(NanoAttachment *attachment);
|
|||||||
AttachmentVerdictResponse
|
AttachmentVerdictResponse
|
||||||
PopResponseVerdictFromQueue(NanoAttachment *attachment);
|
PopResponseVerdictFromQueue(NanoAttachment *attachment);
|
||||||
|
|
||||||
|
NanoCommunicationResult
|
||||||
|
signal_for_session_data(NanoAttachment *attachment, uint32_t cur_session_id, AttachmentDataType chunk_type);
|
||||||
|
|
||||||
#endif // __NANO_ATTACHMENT_IO_H__
|
#endif // __NANO_ATTACHMENT_IO_H__
|
||||||
|
|||||||
Reference in New Issue
Block a user