mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Unbreak on FreeBSD 11 (32-bit ifi_mtu).
This commit is contained in:
parent
1e1c4c98d3
commit
620e45df29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356624
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
--- aoenet.c.orig 2006-05-25 23:10:11.000000000 +0700
|
--- aoenet.c.orig 2006-05-25 23:10:11.000000000 +0700
|
||||||
+++ aoenet.c 2014-02-09 12:48:36.000000000 +0700
|
+++ aoenet.c 2014-06-05 17:19:44.000000000 +0700
|
||||||
@@ -77,8 +77,11 @@
|
@@ -77,8 +77,11 @@
|
||||||
#define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1)
|
#define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1)
|
||||||
#if (__FreeBSD_version < 600000)
|
#if (__FreeBSD_version < 600000)
|
||||||
|
@ -69,3 +69,15 @@
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
IPRINTK("m_copypacket failure\n");
|
IPRINTK("m_copypacket failure\n");
|
||||||
continue;
|
continue;
|
||||||
|
@@ -384,9 +398,9 @@
|
||||||
|
if (m->m_pkthdr.len >
|
||||||
|
ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) {
|
||||||
|
if_printf(ifp, "discard oversize frame "
|
||||||
|
- "(ether type %x flags %x len %u > max %lu)\n",
|
||||||
|
+ "(ether type %x flags %x len %u > max %u)\n",
|
||||||
|
etype, m->m_flags, m->m_pkthdr.len,
|
||||||
|
- ETHER_MAX_FRAME(ifp, etype,
|
||||||
|
+ (int) ETHER_MAX_FRAME(ifp, etype,
|
||||||
|
m->m_flags & M_HASFCS));
|
||||||
|
ifp->if_ierrors++;
|
||||||
|
m_freem(m);
|
||||||
|
|
Loading…
Add table
Reference in a new issue