summaryrefslogtreecommitdiff
path: root/linether.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-07-22 20:57:03 +0100
committerDave Hibberd <hibby@debian.org>2025-07-22 20:57:03 +0100
commit1cc87cf7663179e46d40e316276f2604bc8a7872 (patch)
tree3f2080524be7d2b41616b758bd65d4745a055e79 /linether.c
parent30b1e26a04be2474ebda4cac931831dabb89eb74 (diff)
parent1f40ff4a07793ecfa679a1384053451c4f3f536f (diff)
Update upstream source from tag 'upstream/6.0.24.77+repack'
Update to upstream version '6.0.24.77+repack' with Debian dir bbbd57413e9e0c750630f2d175419335251e159d
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
+