mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Skip uninterested interfaces such as USB devices added to ifadders
in recent RELENG_8.
This commit is contained in:
parent
8608019f7a
commit
26d59be053
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273583
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gkrellm
|
||||
PORTVERSION= 2.3.5
|
||||
#PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils ipv6
|
||||
MASTER_SITES= http://members.dslextreme.com/users/billw/gkrellm/ \
|
||||
${MASTER_SITE_LOCAL}
|
||||
|
15
sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c
Normal file
15
sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c
Normal file
@ -0,0 +1,15 @@
|
||||
Index: src/sysdeps/bsd-common.c
|
||||
diff -u -p src/sysdeps/bsd-common.c.orig src/sysdeps/bsd-common.c
|
||||
--- src/sysdeps/bsd-common.c.orig 2010-09-15 01:27:35.000000000 +0900
|
||||
+++ src/sysdeps/bsd-common.c 2011-05-04 02:20:07.328745551 +0900
|
||||
@@ -64,6 +64,10 @@ gkrellm_sys_net_read_data(void)
|
||||
{
|
||||
if (ifa->ifa_addr->sa_family != AF_LINK)
|
||||
continue;
|
||||
+#ifdef IFF_CANTCONFIG
|
||||
+ if ((ifa->ifa_flags & IFF_CANTCONFIG) != 0)
|
||||
+ continue;
|
||||
+#endif
|
||||
ifd = (struct if_data *)ifa->ifa_data;
|
||||
gkrellm_net_assign_data(ifa->ifa_name,
|
||||
ifd->ifi_ibytes, ifd->ifi_obytes);
|
Loading…
Reference in New Issue
Block a user