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

detect: Recognize ERSPAN Type I packets #4475

Closed
wants to merge 2 commits into from

Conversation

jlucovsky
Copy link
Contributor

This PR adds support for ERSPAN Type I packets.

Continuation of #4466

This document and wireshark were used as a reference for this work.

Link to redmine ticket:3422

Describe changes:

Suricata-verify pr 169

Packet *tp = PacketTunnelPktSetup(tv, dtv, p, pkt + header_len,
len - header_len, DECODE_TUNNEL_ERSPAN, pq);
Packet *tp = PacketTunnelPktSetup(tv, dtv, p, pkt + header_len, len - header_len,
p->greh->version == 0 ? DECODE_TUNNEL_ERSPANI : DECODE_TUNNEL_ERSPANII, pq);
Copy link
Member

Choose a reason for hiding this comment

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

minor: this should use GRE_GET_VERSION(p->greh) instead... however

major: I doubt this version use is suitable. I have a (private) pcap that has version == 0 and type II ERSPAN.

@jlucovsky
Copy link
Contributor Author

Continued in #4510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants