Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Since we're now prepending the ethernet header to...
details: https://anonhg.NetBSD.org/src/rev/03b7494ae74b
branches: trunk
changeset: 473140:03b7494ae74b
user: pk <pk%NetBSD.org@localhost>
date: Fri May 21 13:08:50 1999 +0000
description:
Since we're now prepending the ethernet header to mbuf on incoming
packets, make sure to align the data after the ethernet header.
diffstat:
sys/dev/ic/i82586.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r a86c26e0772a -r 03b7494ae74b sys/dev/ic/i82586.c
--- a/sys/dev/ic/i82586.c Fri May 21 10:15:23 1999 +0000
+++ b/sys/dev/ic/i82586.c Fri May 21 13:08:50 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82586.c,v 1.21 1999/05/18 23:52:55 thorpej Exp $ */
+/* $NetBSD: i82586.c,v 1.22 1999/05/21 13:08:50 pk Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1125,6 +1125,14 @@
len = MCLBYTES;
}
+ if (m == m0) {
+ caddr_t newdata = (caddr_t)
+ ALIGN(m->m_data + sizeof(struct ether_header)) -
+ sizeof(struct ether_header);
+ len -= newdata - m->m_data;
+ m->m_data = newdata;
+ }
+
m->m_len = len = min(totlen, len);
totlen -= len;
Home |
Main Index |
Thread Index |
Old Index