diff options
author | fjoe <fjoe@FreeBSD.org> | 2014-06-05 18:21:03 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2014-06-05 18:21:03 +0800 |
commit | 8069175b0cad8d7dfa1691076ad3131645d0b750 (patch) | |
tree | af4b51612c06282ebb013a8af8ab926e7fcf0550 /net | |
parent | 9ef0e01f95be6cc66dfce5280e5d48a714dca762 (diff) | |
download | freebsd-ports-gnome-8069175b0cad8d7dfa1691076ad3131645d0b750.tar.gz freebsd-ports-gnome-8069175b0cad8d7dfa1691076ad3131645d0b750.tar.zst freebsd-ports-gnome-8069175b0cad8d7dfa1691076ad3131645d0b750.zip |
Unbreak on FreeBSD 11 (32-bit ifi_mtu).
Diffstat (limited to 'net')
-rw-r--r-- | net/aoe/files/patch-aoenet.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/net/aoe/files/patch-aoenet.c b/net/aoe/files/patch-aoenet.c index 97e933f4897c..8ee42ee1b1f7 100644 --- a/net/aoe/files/patch-aoenet.c +++ b/net/aoe/files/patch-aoenet.c @@ -1,5 +1,5 @@ --- 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 @@ #define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1) #if (__FreeBSD_version < 600000) @@ -69,3 +69,15 @@ if (m == NULL) { IPRINTK("m_copypacket failure\n"); 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); |