aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-05-12 05:04:46 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-05-12 05:04:46 +0000
commit73dbd3da73d83f2bace8bfd2e4e33740ef82acf2 (patch)
tree9e7fa374ce86cf10beca9d2dca94fc077a700745 /sys/net/if_loop.c
parente93187482d667fe21125d66ac377260d73a11819 (diff)
Notes
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r--sys/net/if_loop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 94f1c3e47b7d..7698ffd2b967 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -273,9 +273,11 @@ if_simloop(ifp, m, af, hlen)
/* Strip away media header */
if (hlen > 0) {
m_adj(m, hlen);
-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__)
- /* The alpha doesn't like unaligned data.
- * We move data down in the first mbuf */
+#if defined(__ia64__) || defined(__sparc64__)
+ /*
+ * Some archs do not like unaligned data, so
+ * we move data down in the first mbuf.
+ */
if (mtod(m, vm_offset_t) & 3) {
KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
bcopy(m->m_data,