pcap 라이브러리
pacp_open_live() : 네트워크 디바이스 열기
pcap_t *pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
- device : 디바이스 이름 (eth0, hme0)
- snplen : 한번에 캡쳐할 크기 지정
- promisc : 캡쳐할 대상
- 0 : 목적지가 자신, 브로드 캐스트, 자신포함한 멀티 캐스트
- 1 : 모든 패킷
- to_ms : 버퍼링 시간, 패킷 도착후 OS가 처리 대기 시간
- 0 : 충분히 패킷 도착 할
TAG pcap
Trackback address :: http://4ellene.net/tt/trackback/1199

Comments List
移
嫄몄