Changeset 684
- Timestamp:
- 10/27/06 21:41:00 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/module-peiros/TapInterface.cpp
r663 r684 47 47 #include <sys/ioctl.h> 48 48 #include <fcntl.h> 49 50 #if defined(__linux__) 49 51 #include <linux/if.h> 50 52 #include <linux/if_tun.h> 53 #endif 54 51 55 #include <string.h> 52 56 #include <errno.h> … … 60 64 bool TapInterface::Init(uint32_t netmask) 61 65 { 66 #if defined(__linux_) 62 67 logPF(); 63 68 struct ifreq ifr; … … 111 116 g_Nepenthes->getSocketMgr()->addPOLLSocket(this); 112 117 return true; 118 #else 119 logCrit("this module does not work on your operating system, use linux\n"); 120 return false; 121 122 #endif 123 113 124 } 114 125 … … 174 185 bool TapInterface::addAddress(uint32_t address) 175 186 { 187 #if defined(__linux__) 176 188 logPF(); 177 189 int ctlsocket; … … 214 226 215 227 return true; 228 #else 229 return false; 230 #endif 216 231 } 217 232 nepenthes/trunk/modules/module-peiros/TapInterface.hpp
r617 r684 39 39 #include <string> 40 40 41 42 #ifndef __linux__43 #error This only works on Linux.44 #endif45 41 46 42 #ifndef __INCLUDE_TapInterface_hpp
