Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De only/v1 #12217

Closed
wants to merge 2 commits into from
Closed

De only/v1 #12217

wants to merge 2 commits into from

Conversation

Add missing setup part of the decoder event sgh.

Bug: OISF#7414.
Default decoder event alert was very sparse, not even logging packet
type and pcap_cnt. Expand support for this record type. It will be more
useful with the ethernet headers and packet field, but these are still
disabled by default.

Ticket: OISF#7433.
/* just the timestamp, no tuple */
jb_set_string(jb, "timestamp", timebuf);
/* payload */
if (json_output_ctx->flags &
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems useless, as we won't have a payload for this case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not even for the decode-event:ipv6.frag_pkt_too_large kind?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would put us in the first condition here?

    if (PacketIsIPv4(p) || PacketIsIPv6(p)) { 
        return AlertJson(tv, aft, p);
    } else if (p->alerts.cnt > 0) { 
        return AlertJsonDecoderEvent(tv, aft, p);
    }

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23665

@victorjulien victorjulien marked this pull request as draft December 4, 2024 13:47
@victorjulien
Copy link
Member Author

Replaced by #12221.

@victorjulien victorjulien mentioned this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants