diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-11-08 05:33:44 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-11-08 05:33:44 +0800 |
commit | 8e27c76bbc58c4579294b2be447c2acd05160495 (patch) | |
tree | a9c8c6e29511a1f1a6b6780be610582673b57b6b /net | |
parent | dbf92d69c285d7611ab320bd44906aff4f6ba592 (diff) | |
download | freebsd-ports-gnome-8e27c76bbc58c4579294b2be447c2acd05160495.tar.gz freebsd-ports-gnome-8e27c76bbc58c4579294b2be447c2acd05160495.tar.zst freebsd-ports-gnome-8e27c76bbc58c4579294b2be447c2acd05160495.zip |
Workaround bpf non-blocking brokenness (kern/84823).
Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz>
Diffstat (limited to 'net')
-rw-r--r-- | net/trafshow/Makefile | 1 | ||||
-rw-r--r-- | net/trafshow/files/patch-trafshow.c | 11 | ||||
-rw-r--r-- | net/trafshow3/Makefile | 1 | ||||
-rw-r--r-- | net/trafshow3/files/patch-trafshow.c | 11 |
4 files changed, 24 insertions, 0 deletions
diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile index 81f133465795..6909bc40de59 100644 --- a/net/trafshow/Makefile +++ b/net/trafshow/Makefile @@ -7,6 +7,7 @@ PORTNAME= trafshow PORTVERSION= 5.2.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_NETBSD} \ diff --git a/net/trafshow/files/patch-trafshow.c b/net/trafshow/files/patch-trafshow.c new file mode 100644 index 000000000000..e2db3953903e --- /dev/null +++ b/net/trafshow/files/patch-trafshow.c @@ -0,0 +1,11 @@ +--- trafshow.c.orig Mon Jul 12 07:20:41 2004 ++++ trafshow.c Mon Nov 7 22:25:56 2005 +@@ -305,7 +305,7 @@ + fprintf(stderr, "%s: %s\n", dp->name, buf); + err++; + } +- if (pcap_setnonblock(pd, 1, buf) < 0) { ++ if (pcap_setnonblock(pd, 0, buf) < 0) { + fprintf(stderr, "%s: %s\n", dp->name, buf); + pcap_close(pd); + err++; diff --git a/net/trafshow3/Makefile b/net/trafshow3/Makefile index 81f133465795..6909bc40de59 100644 --- a/net/trafshow3/Makefile +++ b/net/trafshow3/Makefile @@ -7,6 +7,7 @@ PORTNAME= trafshow PORTVERSION= 5.2.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_NETBSD} \ diff --git a/net/trafshow3/files/patch-trafshow.c b/net/trafshow3/files/patch-trafshow.c new file mode 100644 index 000000000000..e2db3953903e --- /dev/null +++ b/net/trafshow3/files/patch-trafshow.c @@ -0,0 +1,11 @@ +--- trafshow.c.orig Mon Jul 12 07:20:41 2004 ++++ trafshow.c Mon Nov 7 22:25:56 2005 +@@ -305,7 +305,7 @@ + fprintf(stderr, "%s: %s\n", dp->name, buf); + err++; + } +- if (pcap_setnonblock(pd, 1, buf) < 0) { ++ if (pcap_setnonblock(pd, 0, buf) < 0) { + fprintf(stderr, "%s: %s\n", dp->name, buf); + pcap_close(pd); + err++; |