mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
bd2b7fdf00
the changes made to if_ether.h. Noticed by: phk
39 lines
991 B
Plaintext
39 lines
991 B
Plaintext
--- support/ethertalk/bpfiltp.c.orig Thu Jan 9 07:46:14 1997
|
|
+++ support/ethertalk/bpfiltp.c Thu Jan 9 07:53:14 1997
|
|
@@ -41,6 +41,7 @@
|
|
#include <net/if.h>
|
|
#include <net/bpf.h>
|
|
#include <netinet/in.h>
|
|
+#include <net/if_var.h>
|
|
#include <netinet/if_ether.h>
|
|
#include <netdb.h>
|
|
#include <ctype.h>
|
|
@@ -63,6 +64,9 @@
|
|
#ifdef __FreeBSD__
|
|
#define MULTI_BPF_PKT
|
|
#define USE_SIOCGIFCONF
|
|
+#if __FreeBSD__ >= 2
|
|
+#include <osreldate.h>
|
|
+#endif
|
|
#endif __FreeBSD__
|
|
|
|
#ifdef NeXT
|
|
@@ -785,7 +789,7 @@
|
|
|
|
bcopy(eaddr, &eh.ether_dhost, 6);
|
|
#ifdef PHASE2
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) && __FreeBSD_version <= 199607
|
|
/* This should really be fixed in the kernel. */
|
|
eh.ether_type = buflen;
|
|
#else
|
|
@@ -806,7 +810,7 @@
|
|
*q++ = (eph->protocol >> 8) & 0xff;
|
|
*q++ = (eph->protocol & 0xff);
|
|
#else PHASE2
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) && __FreeBSD_version <= 199607
|
|
/* This should really be fixed in the kernel. */
|
|
eh.ether_type = eph->protocol;
|
|
#else
|