Date: Fri, 4 Sep 2020 17:23:12 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547555 - in head/net-mgmt/rate: . files Message-ID: <202009041723.084HNCVg064052@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Fri Sep 4 17:23:12 2020 New Revision: 547555 URL: https://svnweb.freebsd.org/changeset/ports/547555 Log: Include missing "dns.h" header to get the prototype for dns_lookup() which returns char *. Without it, compiler has to assume that it returns an int, which results in segmentation fault e.g. in -A (bandwidth abusers) mode. Added: head/net-mgmt/rate/files/patch-rate__abusers.c (contents, props changed) head/net-mgmt/rate/files/patch-rate__sta.c (contents, props changed) Modified: head/net-mgmt/rate/Makefile Modified: head/net-mgmt/rate/Makefile ============================================================================== --- head/net-mgmt/rate/Makefile Fri Sep 4 17:04:02 2020 (r547554) +++ head/net-mgmt/rate/Makefile Fri Sep 4 17:23:12 2020 (r547555) @@ -3,7 +3,7 @@ PORTNAME= rate PORTVERSION= 0.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= http://s-tech.elsat.net.pl/bmtools/ Added: head/net-mgmt/rate/files/patch-rate__abusers.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/rate/files/patch-rate__abusers.c Fri Sep 4 17:23:12 2020 (r547555) @@ -0,0 +1,10 @@ +--- rate_abusers.c.orig 2003-08-20 15:42:14 UTC ++++ rate_abusers.c +@@ -33,6 +33,7 @@ + #include <time.h> + #include <pcap.h> + #include "lib.h" ++#include "dns.h" + #ifdef HAVE_REGEX + #include <regex.h> + #endif Added: head/net-mgmt/rate/files/patch-rate__sta.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/rate/files/patch-rate__sta.c Fri Sep 4 17:23:12 2020 (r547555) @@ -0,0 +1,10 @@ +--- rate_sta.c.orig 2003-08-20 14:31:53 UTC ++++ rate_sta.c +@@ -34,6 +34,7 @@ + #include <time.h> + #include <pcap.h> + #include "lib.h" ++#include "dns.h" + #ifdef HAVE_REGEX + #include <regex.h> + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009041723.084HNCVg064052>