diff options
Diffstat (limited to 'linether.c')
| -rw-r--r-- | linether.c | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -22,17 +22,29 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses // Normally uses a Raw socket, but that can't send to other apps on same machine.
// so can use a TAP device instead (or maybe as well??)
+
+// Not suported on BSD based systems
+
+#ifndef FREEBSD
#ifndef MACBPQ
-#include <stdio.h>
-#include "cheaders.h"
+#if !(defined(MACBPQ) || defined(FREEBSD))
+#include <stdio.h>
+#include "cheaders.h"
#include <sys/socket.h>
+
+#if !(defined(FREEBSD))
+
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
+#endif
+#endif
+
+
extern int tap_fd;
typedef struct PCAPStruct
@@ -489,5 +501,11 @@ static int ProcessLine(char * buf, int Port, BOOL CheckPort) return (FALSE);
}
+
+
+//
+
+#endif // MACBPQ
+#endif // FREEBSD
-#endif
+
|
