ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] need a C utility to search data in hex dump

From: prashanth s <prbanglore@xxxxxxxxx>
Date: Thu, 4 Mar 2010 17:36:56 +0530
Hi all,
 
I have read the data from the pcap file in to a buffer. Now I need to search for a pattern in the data from pcap stored in buffer.
Could anyone please tell me a c function that can be used to search for the pattern?
For example the data may contain  00 0f a2 ee cd 34 23 78 00    and I need a c function to search for cd34.
 
Regards,
Prashanth