Changeset 582
- Timestamp:
- 06/25/06 04:24:30 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/module-honeytrap/module-honeytrap.cpp
r578 r582 285 285 286 286 287 if ( (m_RawListener = pcap_open_live(m_PcapDevice.c_str(), 1500, 1, 0, errbuf)) == NULL )287 if ( (m_RawListener = pcap_open_live(m_PcapDevice.c_str(), 1500, 1, 50, errbuf)) == NULL ) 288 288 { 289 289 logCrit("Could not open raw listener on device %s '%s'\n",m_PcapDevice.c_str(),errbuf); … … 489 489 // int pcap_stats(pcap_t *p, struct pcap_stat *ps) 490 490 struct pcap_stat ps; 491 memset(&ps,0,sizeof(struct pcap_stat)); 491 492 if ( pcap_stats(m_RawListener, &ps) != 0 ) 492 493 { … … 784 785 int32_t ModuleHoneyTrap::getsockOpt(int32_t level, int32_t optname,void *optval,socklen_t *optlen) 785 786 { 787 #if defined(linux) || defined(__linux) 786 788 return getsockopt(getSocket(), level, optname, optval, optlen); 789 #else 790 return 0; 791 #endif 787 792 } 788 793
