Fixed some compilation bug and added reconf

This commit is contained in:
Granyaa
2026-01-15 14:58:30 +02:00
parent a04ffb0fa6
commit 9531f757a7
2 changed files with 17 additions and 1 deletions

View File

@@ -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,

View File

@@ -245,4 +245,7 @@ nano_send_metric_data_sender(NanoAttachment *attachment);
AttachmentVerdictResponse
PopResponseVerdictFromQueue(NanoAttachment *attachment);
NanoCommunicationResult
signal_for_session_data(NanoAttachment *attachment, uint32_t cur_session_id, AttachmentDataType chunk_type);
#endif // __NANO_ATTACHMENT_IO_H__