1.获取设备列表:#include "pcap.h"main(){ pcap_if_t *alldevs; pcap_if_t *d; int i=0; char errbuf[PCAP_ERRBUF_SIZE]; /* Retrieve the device list from the local machine */ if (pcap_findalldevs_ex(PCAP_SRC_IF_STRING, NULL /* auth is not needed */, &alldevs, errbuf) == -1) { fpri... Read More
posted @ 2012-12-30 11:56
godjob
Views(433)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号