aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-05-24 17:06:37 +0800
committerkrion <krion@FreeBSD.org>2004-05-24 17:06:37 +0800
commit0c341a8e297f87185fd289951428d469757961d7 (patch)
treebafe23b4738d60b3df5252588dc8c132e19c2c5e /net-mgmt
parent062621dc0faf2be08969bd90dfdd753486dca67b (diff)
downloadfreebsd-ports-gnome-0c341a8e297f87185fd289951428d469757961d7.tar.gz
freebsd-ports-gnome-0c341a8e297f87185fd289951428d469757961d7.tar.zst
freebsd-ports-gnome-0c341a8e297f87185fd289951428d469757961d7.zip
- turn off interactivity for pipe-oriented mode (colondump)
- convert ASN table from static to alloc()ed to reduce memory footprint - bump PORTREVISION PR: ports/67117 Submitted by: maintainer
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ehnt/Makefile2
-rw-r--r--net-mgmt/ehnt/files/patch-ehnt-lookup25
-rw-r--r--net-mgmt/ehnt/files/patch-ehnt__client.c24
3 files changed, 44 insertions, 7 deletions
diff --git a/net-mgmt/ehnt/Makefile b/net-mgmt/ehnt/Makefile
index 3338782d6458..85e353c1bcc5 100644
--- a/net-mgmt/ehnt/Makefile
+++ b/net-mgmt/ehnt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ehnt
PORTVERSION= 0.3
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-mgmt/ehnt/files/patch-ehnt-lookup b/net-mgmt/ehnt/files/patch-ehnt-lookup
index d6f6d655ef11..3e43b700e73d 100644
--- a/net-mgmt/ehnt/files/patch-ehnt-lookup
+++ b/net-mgmt/ehnt/files/patch-ehnt-lookup
@@ -1,8 +1,25 @@
---- ehnt_lookup.c.orig Wed Jul 18 00:47:37 2001
-+++ ehnt_lookup.c Fri Aug 3 19:54:34 2001
-@@ -36,7 +36,7 @@
+
+$FreeBSD$
+
+--- ehnt_lookup.c.orig Thu Oct 4 22:18:29 2001
++++ ehnt_lookup.c Mon May 24 12:01:50 2004
+@@ -25,7 +25,7 @@
- memset(ASNs,0,sizeof(ASNs));
+
+ #define ASNCOUNT 65536
+-char * ASNs[ASNCOUNT];
++char ** ASNs;
+
+ int Init_ASN_Lookups(void) {
+
+@@ -34,9 +34,11 @@
+ int asn;
+ char line[100],asnname[100];
+
+- memset(ASNs,0,sizeof(ASNs));
++ ASNs = calloc(ASNCOUNT, sizeof(char *));
++ if (ASNs == NULL)
++ perror("out of memory");
- if ( ! (f=fopen ("asnc.txt","r")) ) {
+ if ( ! (f=fopen (ASNCDIR "/asnc.txt","r")) ) {
diff --git a/net-mgmt/ehnt/files/patch-ehnt__client.c b/net-mgmt/ehnt/files/patch-ehnt__client.c
index a518e52f5eca..1ff62cb29cf1 100644
--- a/net-mgmt/ehnt/files/patch-ehnt__client.c
+++ b/net-mgmt/ehnt/files/patch-ehnt__client.c
@@ -2,8 +2,28 @@
$FreeBSD$
--- ehnt_client.c.orig Thu Oct 4 22:18:29 2001
-+++ ehnt_client.c Thu Nov 14 22:12:07 2002
-@@ -89,7 +89,7 @@
++++ ehnt_client.c Mon May 24 11:59:17 2004
+@@ -69,7 +69,8 @@
+ printf("Warning: can't catch interrupt signal\n");
+ }
+ fflush(stdout);
+- set_term(SET_TERM_RAW);
++ if (e_cfg->mode != EM_COLONDUMP)
++ set_term(SET_TERM_RAW);
+ setbuf(stdout,NULL);
+
+ for ( ; ; ) {
+@@ -78,7 +79,8 @@
+ int maxfd=sockfd;
+
+ FD_ZERO(&read_fds);
+- FD_SET(STDIN_FILENO,&read_fds);
++ if (e_cfg->mode != EM_COLONDUMP)
++ FD_SET(STDIN_FILENO,&read_fds);
+ FD_SET(sockfd,&read_fds);
+
+ fflush(stdout);
+@@ -89,7 +91,7 @@
if (FD_ISSET(sockfd,&read_fds)) {
ehnt_client_processmessage(sockfd,routeraddr,my_ehnt_struct);
}