i'am developping an application with Visual C++ 2010 on windows 7, i want to sent packets and receive the same packets using winpcap libraries. i'am working with the same computer and i want to sent to and receive from my Ethernet NIC card.
the function pcap_sendpacket() returns success, that means the packet is sent!! ok.
the receiver is also working succesfully, but the problem that it does not capture the packet that i send to NIC card.
i tried to use Wireshark to capture this packet but it informes me that there are no packet in the NIC card.
i think this is because the status of the NIC card which is disconnected.
i thought that sending and receiving from NIC card in the same computer doesn't need to use a serial communication with wires.
so how can i solve this problem. can some one help me please :(