<div dir="ltr"><div dir="ltr">Hi Jason,<div><br></div><div>The pointer is really helpful to start with the implementation </div><div><br></div><div>Thank you.</div><div><br></div><div>Regards</div><div>Maloy Kundu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 10, 2020 at 12:23 AM Jason Ish <<a href="mailto:jason.ish@oisf.net">jason.ish@oisf.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On 2020-03-09 12:40 a.m., Maloy Kundu wrote:<br>
> Hello,<br>
> <br>
> I have one question about changing the packet source of Suricata.<br>
> <br>
> Suricata  receives packets from network interface by default. I need to<br>
> have understanding or knowledge about how to modify the packet source of<br>
> Suricata. Instead of probe interface, Suricata will receive packet from<br>
> another process using shared memory. A process that receives packets<br>
> from network probe interface will write packet in shard memory and from<br>
> that shared memory Suricata will pick those packets for processing.<br>
> <br>
> Can you please share knowledge or some pointers on this?<br>
<br>
<br>
I'd first start by looking at our somewhat dated documentation we have<br>
for this:<br>
<br>
<a href="https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Packet_Acquisition_API" rel="noreferrer" target="_blank">https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Packet_Acquisition_API</a><br>
<br>
while following along with an existing source such as source-pcap.c, and<br>
perhaps another like source-erf-dag.c (while for DAG interfaces, its<br>
essentially retrieving the packet from shared memory, just behind the<br>
DAG libraries though). Basically your source gets the data from<br>
wherever, and has to transform it into what is expected of Suricata.<br>
<br>
Updates to the developer documentation are planned, but there should be<br>
enough there to get a rough start.<br>
<br>
Hope that helps,<br>
Jason<br>
_______________________________________________<br>
Suricata IDS Devel mailing list: <a href="mailto:oisf-devel@openinfosecfoundation.org" target="_blank">oisf-devel@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" rel="noreferrer" target="_blank">http://suricata-ids.org</a> | Participate: <a href="http://suricata-ids.org/participate/" rel="noreferrer" target="_blank">http://suricata-ids.org/participate/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel" rel="noreferrer" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
Redmine: <a href="https://redmine.openinfosecfoundation.org/" rel="noreferrer" target="_blank">https://redmine.openinfosecfoundation.org/</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br></div></div>