Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 16:45:24 +0200 (IST)
From:      Roman Shterenzon <roman@xpert.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        roman@xpert.com
Subject:   ports/32695: Don't display private networks hits.
Message-ID:  <200112111445.fBBEjOF63727@alchemy.oven.org>

next in thread | raw e-mail | index | archive | help

>Number:         32695
>Category:       ports
>Synopsis:       Don't display private networks hits.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 11 06:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Roman Shterenzon
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD alchemy.oven.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Nov 22 12:47:10 IST 2001 root@alchemy.oven.org:/local/src/sys/compile/ALCHEMY i386


>Description:

I made gtk-gnutella ignore hits from private networks which are useless anyway.

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/gtk-gnutella/Makefile gtk-gnutella/Makefile
--- /usr/ports/net/gtk-gnutella/Makefile	Fri Nov 23 12:13:23 2001
+++ gtk-gnutella/Makefile	Tue Dec 11 16:43:25 2001
@@ -7,6 +7,7 @@
 
 PORTNAME=	gtk-gnutella
 PORTVERSION=	0.18
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
 		http://gtk-gnutella.sourceforge.net/download/ \
diff -urN /usr/ports/net/gtk-gnutella/files/patch-search.c gtk-gnutella/files/patch-search.c
--- /usr/ports/net/gtk-gnutella/files/patch-search.c	Thu Jan  1 02:00:00 1970
+++ gtk-gnutella/files/patch-search.c	Fri Dec  7 00:14:32 2001
@@ -0,0 +1,20 @@
+--- src/search.c.orig	Thu Dec  6 23:52:35 2001
++++ src/search.c	Fri Dec  7 00:05:49 2001
+@@ -13,6 +13,7 @@
+ #include "dialog-filters.h"
+ #include "routing.h"
+ #include "autodownload.h"
++#include "hosts.h"
+ 
+ #define MAKE_CODE(a,b,c,d) ( \
+ 	((guint32) (a) << 24) | \
+@@ -1258,7 +1259,8 @@
+ 		if (
+ 			sch->items >= search_max_results ||
+ 			search_result_is_dup(sch, rc) ||
+-			!filter_record(sch, rc)
++			!filter_record(sch, rc) ||
++			!check_valid_host(rc->results_set->ip,6346)
+ 		) {
+ 			rs->records = g_slist_remove(rs->records, rc);
+ 			rs->num_recs--;
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112111445.fBBEjOF63727>