On 2016-02-01 at 15:38:28 +0100, Umair Ali <
ali....@tut.fi> wrote:
> Thanks a lot for the help offer. I can understand what you want to say.
>
> I need your feedback on the code which I have written. The flow of the code is as follows
> - Reader the pcap file. the pcap file contained the captured Sampled Values packets (IEC 61850 9-2 SV, Datalink layer lever)
> - The length of each packet is fixed which is 126 bytes and pcap only contain SV packets.
> - The code below is opening pcap file and then mapping the file and closing the pcap file
> - the Variable packet_index is used to point the start of every packet
>
> It is very small code and it will few minutes to read. Please find the attached file. I will appreciate your feedback and points of suggestions. Thanks a lot once again and sorry for bugging you too much.
Sorry, but reviewing a random dump of code (that doesn't even compile)
goes beyond the scope of what I'd consider support/help for netsniff-ng.
As said, I'm happy to help with any problems you encounter specific to
the netsniff-ng toolkit or help you get patches integrated that make
netsniff-ng work better in your environment/application.
Good luck
Tobias