FreeBSD Bugzilla – Attachment 148152 Details for
Bug 194187
devel/libgtop using the wrong definitions for struct ifnet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Reflect r272244 changes in base.
patch-devel_libgtop.txt (text/plain), 2.62 KB, created by
Eric Camachat
on 2014-10-10 06:09:57 UTC
(
hide
)
Description:
Reflect r272244 changes in base.
Filename:
MIME Type:
Creator:
Eric Camachat
Created:
2014-10-10 06:09:57 UTC
Size:
2.62 KB
patch
obsolete
>Index: devel/libgtop/Makefile >=================================================================== >--- devel/libgtop/Makefile (revision 370565) >+++ devel/libgtop/Makefile (working copy) >@@ -27,6 +27,11 @@ > > PKGMESSAGE= ${FILESDIR}/pkg-message > >+.include <bsd.port.pre.mk> >+.if ${OSVERSION} >= 1100037 >+EXTRA_PATCHES+= ${FILESDIR}/extrapatch-sysdeps_freebsd_netload.c >+.endif >+ > post-configure: > @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f > >Index: devel/libgtop/files/extrapatch-sysdeps_freebsd_netload.c >=================================================================== >--- devel/libgtop/files/extrapatch-sysdeps_freebsd_netload.c (revision 0) >+++ devel/libgtop/files/extrapatch-sysdeps_freebsd_netload.c (working copy) >@@ -0,0 +1,29 @@ >+--- sysdeps/freebsd/netload.c.orig 2014-10-03 17:46:43.136489000 -0700 >++++ sysdeps/freebsd/netload.c 2014-10-03 17:57:19.000000000 -0700 >+@@ -178,19 +179,19 @@ glibtop_get_netload_p (glibtop *server, >+ if (ifnet.if_flags & IFF_MULTICAST) >+ buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_MULTICAST); >+ >+- buf->packets_in = ifnet.if_ipackets; >+- buf->packets_out = ifnet.if_opackets; >++ buf->packets_in = ifnet.if_counters[IFCOUNTER_IPACKETS]; >++ buf->packets_out = ifnet.if_counters[IFCOUNTER_OPACKETS]; >+ buf->packets_total = buf->packets_in + buf->packets_out; >+ >+- buf->bytes_in = ifnet.if_ibytes; >+- buf->bytes_out = ifnet.if_obytes; >++ buf->bytes_in = ifnet.if_counters[IFCOUNTER_IBYTES]; >++ buf->bytes_out = ifnet.if_counters[IFCOUNTER_OBYTES]; >+ buf->bytes_total = buf->bytes_in + buf->bytes_out; >+ >+- buf->errors_in = ifnet.if_ierrors; >+- buf->errors_out = ifnet.if_oerrors; >++ buf->errors_in = ifnet.if_counters[IFCOUNTER_IERRORS]; >++ buf->errors_out = ifnet.if_counters[IFCOUNTER_OERRORS]; >+ buf->errors_total = buf->errors_in + buf->errors_out; >+ >+- buf->collisions = ifnet.if_collisions; >++ buf->collisions = ifnet.if_counters[IFCOUNTER_COLLISIONS]; >+ buf->flags = _glibtop_sysdeps_netload; >+ >+ while (ifaddraddr) { > >Property changes on: devel/libgtop/files/extrapatch-sysdeps_freebsd_netload.c >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194187
: 148152