<div dir="ltr">Peter,<div><br></div><div>I figured out the issue. In the procedure called "DecodeICMPV4()", there needs to be a call to "FlowSetupPacket(p);", in order to add this packet to the flow manager. I figured it out by looking at the source code in the procedure called "DecodeICMPV6() and "DecodeICMPV4()".</div><div><br></div><div>Once I added this, both ICMPv4 and ICMPv6 were tracking ping requests/replies flows correctly, and in the same manner.</div><div><br></div><div>Thanks,<br>Brad</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 2, 2017 at 8:11 AM, Peter Manev <span dir="ltr"><<a href="mailto:petermanev@gmail.com" target="_blank">petermanev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, May 31, 2017 at 1:57 AM, Brad Kingsbury <<a href="mailto:bradkingsbury@gmail.com">bradkingsbury@gmail.com</a>> wrote:<br>
> I'm trying to get JSON outputs for ICMPv4 and ICMPv6 flows.<br>
><br>
> When I have Suricata process a simple ping (request/reply -- 2 packets) for<br>
> both ICMPv4 and ICMPv6, they generate different outputs in the EVE.JSON<br>
> file.<br>
><br>
> ICMPv6 displays the details, including the ICMP code/type, about the<br>
> flow/netflow, but for ICMPv4, no flow info is displayed whatsoever. The<br>
> ICMPv4 packets are detected as ICMPv4 packets, based upon the summary line,<br>
> but I can't see the code/type.<br>
<br>
</span>Is it possible to share some logs/pcap to reproduce this?<br>
<span class=""><br>
><br>
> Anyway to see the code/type from the ICMPv4 flows/netflows?<br>
><br>
> Thanks,<br>
> Brad<br>
><br>
</span>> ______________________________<wbr>_________________<br>
> Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@<wbr>openinfosecfoundation.org</a><br>
> Site: <a href="http://suricata-ids.org" rel="noreferrer" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" rel="noreferrer" target="_blank">http://suricata-ids.org/<wbr>support/</a><br>
> List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" rel="noreferrer" target="_blank">https://lists.<wbr>openinfosecfoundation.org/<wbr>mailman/listinfo/oisf-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Regards,<br>
Peter Manev<br>
</font></span></blockquote></div><br></div>