diff options
author | Max Khon <fjoe@FreeBSD.org> | 2014-08-31 18:35:40 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2014-08-31 18:35:40 +0000 |
commit | 8384c159e35b78ed96fb7a7f46a73522ac222d79 (patch) | |
tree | ea880fd306815c10ade26e640b0783638fc015b9 /net/aoe | |
parent | 20d57d13be579178edffd3d4f1d72f707bf00263 (diff) | |
download | ports-8384c159e35b78ed96fb7a7f46a73522ac222d79.tar.gz ports-8384c159e35b78ed96fb7a7f46a73522ac222d79.zip |
Notes
Diffstat (limited to 'net/aoe')
-rw-r--r-- | net/aoe/files/patch-aoenet.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/net/aoe/files/patch-aoenet.c b/net/aoe/files/patch-aoenet.c index 3bea889425a6..b86c17da7526 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-09-01 01:49:14.000000000 +0700 ++++ aoenet.c 2014-09-01 01:54:47.000000000 +0700 @@ -77,8 +77,11 @@ #define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1) #if (__FreeBSD_version < 600000) @@ -47,7 +47,7 @@ return (NULL); m->m_len = AOEHDRSZ; m->m_pkthdr.len = f->f_mlen; -@@ -215,7 +232,7 @@ +@@ -215,14 +232,21 @@ u_int len; len = f->f_mlen - AOEHDRSZ; @@ -56,9 +56,13 @@ m_freem(m); return (NULL); } -@@ -223,6 +240,9 @@ + m->m_next = m1; ++#if __FreeBSD_version >= 1100028 ++ m1->m_ext.ext_cnt = NULL; ++#else m1->m_ext.ref_cnt = NULL; ++#endif MEXTADD(m1, f->f_data, len, nilfn, +#if (__FreeBSD_version >= 800000) + f->f_data, @@ -66,7 +70,7 @@ NULL, 0, EXT_NET_DRV); m1->m_len = len; m1->m_next = NULL; -@@ -276,7 +296,7 @@ +@@ -276,7 +300,7 @@ if (!is_aoe_netif(ifp)) continue; memcpy(h->ah_src, IFPADDR(ifp), sizeof(h->ah_src)); @@ -75,7 +79,7 @@ if (m == NULL) { IPRINTK("m_copypacket failure\n"); continue; -@@ -384,9 +404,9 @@ +@@ -384,9 +408,9 @@ if (m->m_pkthdr.len > ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) { if_printf(ifp, "discard oversize frame " |