aboutsummaryrefslogtreecommitdiff
path: root/net/lft
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>2005-07-20 02:04:25 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>2005-07-20 02:04:25 +0000
commit0a65c68997b780e28a0d2c74fe82328c8d14e2fc (patch)
tree4b8a1e2b484863d22551e99f35b185e9bf456a5c /net/lft
parent319da4a7e523918a1b0a623e7fd9f8e0b61e32b5 (diff)
downloadports-0a65c68997b780e28a0d2c74fe82328c8d14e2fc.tar.gz
ports-0a65c68997b780e28a0d2c74fe82328c8d14e2fc.zip
Notes
Diffstat (limited to 'net/lft')
-rw-r--r--net/lft/Makefile3
-rw-r--r--net/lft/distinfo4
-rw-r--r--net/lft/files/patch-lft.c74
3 files changed, 3 insertions, 78 deletions
diff --git a/net/lft/Makefile b/net/lft/Makefile
index b4f26eb1f2b7..01667d0a7021 100644
--- a/net/lft/Makefile
+++ b/net/lft/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= lft
-PORTVERSION= 2.2
-PORTREVISION= 1
+PORTVERSION= 2.31
CATEGORIES= net
MASTER_SITES= http://www.mainnerve.com/lft/ \
http://www.drkangel.org/sw/
diff --git a/net/lft/distinfo b/net/lft/distinfo
index 63034ed8fca6..5bcf78a163aa 100644
--- a/net/lft/distinfo
+++ b/net/lft/distinfo
@@ -1,2 +1,2 @@
-MD5 (lft-2.2.tar.gz) = 75d2a4f0e224733156a668ca04881c4b
-SIZE (lft-2.2.tar.gz) = 105483
+MD5 (lft-2.31.tar.gz) = 5b8b16c061528c1ace9550a47255906d
+SIZE (lft-2.31.tar.gz) = 106329
diff --git a/net/lft/files/patch-lft.c b/net/lft/files/patch-lft.c
deleted file mode 100644
index 2479f0a4509a..000000000000
--- a/net/lft/files/patch-lft.c
+++ /dev/null
@@ -1,74 +0,0 @@
---- lft.c.orig Wed May 7 15:43:30 2003
-+++ lft.c Tue Sep 30 05:24:47 2003
-@@ -25,6 +25,8 @@
- #include "acconfig.h"
- #include <assert.h>
-
-+#define INT_MAX ((int))~0U>>1))
-+
- #ifdef __CYGWIN__
- #define __USE_W32_SOCKETS
- #include "windows.h"
-@@ -76,6 +78,12 @@
- #ifdef BSD
- #include <machine/limits.h>
- #endif
-+#ifdef BSD_IP_STACK
-+#include <errno.h>
-+#include <sys/ioctl.h>
-+#include <net/bpf.h>
-+#include <pcap-int.h>
-+#endif
-
- #ifdef sun
- #include <limits.h>
-@@ -961,7 +969,7 @@
- return; * not for us */
-
-
-- if (noisy) printf ("ICMP SEQ=%u received\n", ntohl (tcp->th_seq));
-+ if (noisy) printf ("ICMP SEQ=%lu received\n", ntohl (tcp->th_seq));
- recv_packet (ntohl (tcp->th_seq) , orig_ip->ip_src,
- (icmp->icmp_type == ICMP_TIMXCEED) ? -2 : icmp->icmp_code);
- break;
-@@ -1046,6 +1054,9 @@
- "LFT version 2.2 2003/05/07 compiled for " HOST_SYSTEM_TYPE "\n\n"
- " Compile-time options:\n\n"
- #if defined(BSD_IP_STACK)
-+ " + BSDSTACK\n"
-+#endif
-+#if defined(BSD)
- " + BSD\n"
- #endif
- #if defined(linux)
-@@ -1111,6 +1122,7 @@
- int use_fins = 0;
- char *cp;
- struct timeval tb;
-+ unsigned int bpfimmflag;
-
- setbuf (stdout, NULL);
-
-@@ -1131,7 +1143,7 @@
- dport = atoi (optarg);
- break;
- case 'q':
-- seq_start = atol (optarg);
-+ seq_start = strtoll (optarg, NULL, 10);
- break;
- case 'w':
- win_len = atoi(optarg);
-@@ -1311,6 +1323,13 @@
- fprintf (stderr, "%s\n", ebuf);
- exit (1);
- }
-+#ifdef BSD_IP_STACK
-+ bpfimmflag = 1;
-+ if ( ioctl(pd->fd, BIOCIMMEDIATE, &bpfimmflag) < 0) {
-+ fprintf(stderr, "BIOCIMMEDIATE: %s",
-+ pcap_strerror(errno));
-+ }
-+#endif
- #endif
- init_address (hostname, pcap_dev);
- open_sockets ();