[내장형]이상만_110927
PROTOCOL 전체소스 보기 소스분석하기 네트워크 디바이스 열기 man pcap의 내용 pcap_t *pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf) pcap_t *stpNIC pcap_open_live(cpNIC_name,1500,1,0,errbuf); 인자값 설명 1)char * device : cpNIC_name – device 인자에 디바이스 이름(예, eth0, hme())을 지정 2)int snaplen : 1500세팅 - snaplen은 캡쳐할 크기 TCP 헤더를 캡쳐할 경우 : 이더넷 헤더 +IP헤더+TCP헤더 3)int promisc : 1세팅 – promisc 0 : 목적지가 자신인 패킷, 브로..
2011. 9. 28.