Searching for packet capture file

I want to find the main file or package that responsible for packet capture that entered the router like raw socket or pcap, so What is the location of this file in source code of openwrt ?

1 Like

Brother can you explain to me more about tcpdump most important functions ?


I also like this tutorial.

Thanks brothers.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

brother another question, Do you know which files responsible for nating and forwarding ?

This is very generic. iptables are used for nat. Forwarding is part of the OS.

1 Like

Can you tell me the location of these files in source code ?

1 Like

You've already received an answer to the question once before, I'm sure the files haven't moved since then