summaryrefslogtreecommitdiff
path: root/linether.c
diff options
context:
space:
mode:
Diffstat (limited to 'linether.c')
-rw-r--r--linether.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/linether.c b/linether.c
index fb3410c..b354465 100644
--- a/linether.c
+++ b/linether.c
@@ -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
+