summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-10-05 19:04:23 +0000
committerdfr <dfr@FreeBSD.org>2001-10-05 19:04:23 +0000
commit0eec0bfe7bba52169a100e2894ea67eac99fe031 (patch)
tree70e2d4102500d99a5cb8a3b9d09bc380c1f8359e /sys/net
parent3908c08eda80b3791a2bd06e8517522098471b5e (diff)
downloadFreeBSD-src-0eec0bfe7bba52169a100e2894ea67eac99fe031.zip
FreeBSD-src-0eec0bfe7bba52169a100e2894ea67eac99fe031.tar.gz
Add ia64 to the list of machines which don't do unaligned reads.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf_filter.c2
-rw-r--r--sys/net/if_loop.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c
index 4f9bcf7..0f0a6ba 100644
--- a/sys/net/bpf_filter.c
+++ b/sys/net/bpf_filter.c
@@ -46,7 +46,7 @@
#include <netinet/in.h>
#endif
-#if defined(sparc) || defined(mips) || defined(ibm032) || defined(__alpha__)
+#if defined(sparc) || defined(mips) || defined(ibm032) || defined(__alpha__) || defined(__ia64__)
#define BPF_ALIGN
#endif
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 3d8a1c2..c17a7be 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -322,7 +322,7 @@ if_simloop(ifp, m, af, hlen)
/* Strip away media header */
if (hlen > 0) {
m_adj(m, hlen);
-#ifdef __alpha__
+#if defined(__alpha__) || defined(__ia64__)
/* The alpha doesn't like unaligned data.
* We move data down in the first mbuf */
if (mtod(m, vm_offset_t) & 3) {
OpenPOWER on IntegriCloud