I have a captured pcap network file and you want to send its packets to the NIC; Is it possible? Is there any application for this?
You can use some kind of playback application like one (tcpreplay) .
a bit twist can do this.
just install it and enter your package as follows:
# bittwist -i eth0 pcap-file.pcap
There is a libpcap / winpcap library that allows the programmer to send / receive packets and work directly with the NDIS level driver. http://www.winpcap.org
Yes, there is a way - sending a packet to the NIC means entering it into the interface.
You can do this with libnet packege on linux. I work too these days. Try Googling with this term, you will surely get some good stuff to share.
I am using tcpreplay on Linux / Freebsd, for example:
#tcpreplay -l 0 -i eth1 path-to-your-captured-file.pcap-l loop how many times, 0 for infinite -i where you want to send a message
#tcpreplay -l 0 -i eth1 path-to-your-captured-file.pcap