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

View File

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