mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add LFT, the Level 4 Traceroute utility.
PR: 48475 Submitted by: Marco P. Rodrigues <drkangel@drkangel.org>
This commit is contained in:
parent
83581ad082
commit
c7e70f06f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76934
@ -253,6 +253,7 @@
|
||||
SUBDIR += lambdamoo
|
||||
SUBDIR += ldapdiff
|
||||
SUBDIR += ldapsdk
|
||||
SUBDIR += lft
|
||||
SUBDIR += libdnet
|
||||
SUBDIR += libfreenet
|
||||
SUBDIR += libicq
|
||||
|
26
net/lft/Makefile
Normal file
26
net/lft/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# New ports collection makefile for: lft
|
||||
# Date created: 19 Feb 2003
|
||||
# Whom: Marco P. Rodrigues <drkangel@drkangel.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= lft
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.mainnerve.com/lft/ \
|
||||
http://www.drkangel.org/sw/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= drkangel@drkangel.org
|
||||
COMMENT= Layer 4 Traceroute program
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
MAKEFILE= Makefile.bsd
|
||||
MAN8= lft.8
|
||||
|
||||
do-install:
|
||||
${INSTALL} -c -s -m 4755 -o root -g wheel ${WRKSRC}/lft ${PREFIX}/sbin
|
||||
${INSTALL_MAN} ${WRKSRC}/lft.8 ${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/lft/distinfo
Normal file
1
net/lft/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (lft-2.0-src.tar.gz) = d7ae3bd202257f961bc24c2415d9a8bc
|
20
net/lft/files/patch-lft.c
Normal file
20
net/lft/files/patch-lft.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- lft.c.orig Wed Mar 5 16:16:09 2003
|
||||
+++ lft.c Wed Mar 5 16:16:21 2003
|
||||
@@ -928,7 +928,7 @@
|
||||
// return; /* not for us */
|
||||
|
||||
|
||||
- if (noisy) printf ("ICMP %u\n", ntohl (tcp->th_seq));
|
||||
+ if (noisy) printf ("ICMP %lu\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;
|
||||
@@ -949,7 +949,7 @@
|
||||
if (noisy) printf (" ACK ");
|
||||
if (tcp->th_flags & TH_SYN)
|
||||
if (noisy) printf (" SYN ");
|
||||
- if (noisy) printf (" seq %u ack %u ", ntohl (tcp->th_seq), ntohl (tcp->th_ack));
|
||||
+ if (noisy) printf (" seq %lu ack %lu ", ntohl (tcp->th_seq), ntohl (tcp->th_ack));
|
||||
if (noisy) printf ("from %s\n", inet_ntoa (ip->ip_src));
|
||||
|
||||
//if (ntohl(tcp->th_ack) < seq_start || ntohl(tcp->th_ack) > seq_start + trace_packet_info_length + 1)
|
10
net/lft/files/patch-lft_ifname.c
Normal file
10
net/lft/files/patch-lft_ifname.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- lft_ifname.c.orig Wed Mar 5 16:16:49 2003
|
||||
+++ lft_ifname.c Wed Mar 5 16:17:05 2003
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifndef linux
|
||||
#include <sys/sockio.h>
|
||||
#endif
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <net/if.h>
|
11
net/lft/pkg-descr
Normal file
11
net/lft/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
LFT, short for Layer Four Traceroute, is a sort of 'traceroute' that often
|
||||
works much faster (than the commonly-used Van Jacobson method) and goes through
|
||||
many configurations of packet-filter based firewalls. More importantly, LFT
|
||||
implements numerous other features including AS number lookups, loose source
|
||||
routing, netblock name lookups, et al. Though LFT has been around since 1998,
|
||||
its development effort has just recently resumed.
|
||||
|
||||
WWW: http://www.mainnerve.com/lft/
|
||||
|
||||
Ported to FreeBSD by:
|
||||
Marco P. Rodrigues (drkangel@drkangel.org)
|
1
net/lft/pkg-plist
Normal file
1
net/lft/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
sbin/lft
|
Loading…
Reference in New Issue
Block a user