Index: head/emulators/parallels-tools/Makefile =================================================================== --- head/emulators/parallels-tools/Makefile (revision 369842) +++ head/emulators/parallels-tools/Makefile (revision 369843) @@ -1,18 +1,19 @@ # Created by: Alexander Nedotsukov # $FreeBSD$ PORTNAME= parallels-tools PORTVERSION= 0.1.2 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= LOCAL/bland MAINTAINER= bland@FreeBSD.org COMMENT= Parallels Desktop Tools for FreeBSD USES= kmod tar:bzip2 uidfix ONLY_FOR_ARCHS= amd64 i386 PLIST_FILES= ${KMODDIR}/if_pvmnet.ko .include Index: head/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c =================================================================== --- head/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c (nonexistent) +++ head/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c (revision 369843) @@ -0,0 +1,47 @@ +--- pvmnet/if_pvmnet.c.orig 2014-10-02 22:19:21.000000000 +0400 ++++ pvmnet/if_pvmnet.c 2014-10-02 22:21:10.000000000 +0400 +@@ -364,12 +364,20 @@ + for (offset = io_get_rcv_offset(sc); + (size = io_get_packet_size(sc, offset)); offset += FULL_PACKET_SIZE(size)) { + if (size > ETHER_MAX_LEN) { ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); ++#else + ifp->if_ierrors++; ++#endif + continue; + } + m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); + if (m == NULL) { ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); ++#else + ifp->if_ierrors++; ++#endif + continue; + } + m->m_pkthdr.rcvif = ifp; +@@ -379,7 +387,11 @@ + m->m_pkthdr.len = m->m_len = size; + io_read_data(sc, offset, m); + ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); ++#else + ifp->if_ipackets++; ++#endif + + PVMNET_UNLOCK(sc); + (*ifp->if_input)(ifp, m); +@@ -538,7 +550,11 @@ + io_notify_sndbuf_full(sc); + break; + } ++#if __FreeBSD_version >= 1100036 ++ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); ++#else + ifp->if_opackets++; ++#endif + BPF_MTAP(ifp, m); + m_freem(m); + } Property changes on: head/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property