diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-03-22 03:31:49 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-03-22 03:31:49 +0000 |
commit | 8280541aaad107d50c1a8c557d9ab2097c297f23 (patch) | |
tree | 82ef533f1761291bfb178bb2619ab7387865ce26 /net/tcptraceroute-devel | |
parent | d6cd1b164f0f71e0f1542efe3a65cd1fc5d70cfd (diff) | |
download | FreeBSD-ports-8280541aaad107d50c1a8c557d9ab2097c297f23.zip FreeBSD-ports-8280541aaad107d50c1a8c557d9ab2097c297f23.tar.gz |
add tcptraceroute 1.2
A traceroute implementation using TCP packets
PR: 36177
Submitted by: Jeff Wheat <jeff@cetlink.net>
Diffstat (limited to 'net/tcptraceroute-devel')
-rw-r--r-- | net/tcptraceroute-devel/Makefile | 19 | ||||
-rw-r--r-- | net/tcptraceroute-devel/distinfo | 1 | ||||
-rw-r--r-- | net/tcptraceroute-devel/files/patch-Makefile | 52 | ||||
-rw-r--r-- | net/tcptraceroute-devel/pkg-comment | 1 | ||||
-rw-r--r-- | net/tcptraceroute-devel/pkg-descr | 17 | ||||
-rw-r--r-- | net/tcptraceroute-devel/pkg-plist | 1 |
6 files changed, 91 insertions, 0 deletions
diff --git a/net/tcptraceroute-devel/Makefile b/net/tcptraceroute-devel/Makefile new file mode 100644 index 0000000..cc47f71 --- /dev/null +++ b/net/tcptraceroute-devel/Makefile @@ -0,0 +1,19 @@ +# New ports collection makefile for: tcptraceroute +# Date created: 21 March 2002 +# Whom: jeff@cetlink.net +# +# $FreeBSD$ +# + +PORTNAME= tcptraceroute +PORTVERSION= 1.2 +CATEGORIES= net +MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ + +MAINTAINER= ports@FreeBSD.org + +BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet + +MAN8= tcptraceroute.8 + +.include <bsd.port.mk> diff --git a/net/tcptraceroute-devel/distinfo b/net/tcptraceroute-devel/distinfo new file mode 100644 index 0000000..ac6a055 --- /dev/null +++ b/net/tcptraceroute-devel/distinfo @@ -0,0 +1 @@ +MD5 (tcptraceroute-1.2.tar.gz) = e31e3f5bfd817d32ed6d954382ca768d diff --git a/net/tcptraceroute-devel/files/patch-Makefile b/net/tcptraceroute-devel/files/patch-Makefile new file mode 100644 index 0000000..0a1755a --- /dev/null +++ b/net/tcptraceroute-devel/files/patch-Makefile @@ -0,0 +1,52 @@ +*** Makefile.orig Tue Jul 31 23:52:40 2001 +--- Makefile Thu Mar 21 16:02:29 2002 +*************** +*** 1,20 **** + # tcptraceroute -- A traceroute implementation using TCP packets + # Copyright (c) 2001, Michael C. Toren <mct@toren.net> + +! CC = gcc + CFLAGS = -O2 -Wall +! DESTDIR=/usr/local/bin + + tcptraceroute: tcptraceroute.c +! $(CC) $(CFLAGS) `libnet-config --defines` \ + -o tcptraceroute tcptraceroute.c \ +! `libnet-config --libs` -lpcap + + static: + $(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static" + + install: tcptraceroute +! install -D tcptraceroute $(DESTDIR)/tcptraceroute + + distrib: clean changelog man + +--- 1,27 ---- + # tcptraceroute -- A traceroute implementation using TCP packets + # Copyright (c) 2001, Michael C. Toren <mct@toren.net> + +! CC = cc + CFLAGS = -O2 -Wall +! LNETINC= -I/usr/local/include +! LNETLIB= -L/usr/local/lib +! +! BINDIR= ${PREFIX}/bin +! MANDIR= ${PREFIX}/man +! +! all: tcptraceroute + + tcptraceroute: tcptraceroute.c +! $(CC) $(CFLAGS) `libnet-config --defines` $(LNETINC) \ + -o tcptraceroute tcptraceroute.c \ +! $(LNETLIB) `libnet-config --libs` -lpcap + + static: + $(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static" + + install: tcptraceroute +! install -c -s tcptraceroute $(BINDIR)/tcptraceroute +! install -c -m 444 tcptraceroute.8 $(MANDIR)/man8/tcptraceroute.8 + + distrib: clean changelog man + diff --git a/net/tcptraceroute-devel/pkg-comment b/net/tcptraceroute-devel/pkg-comment new file mode 100644 index 0000000..da541f6 --- /dev/null +++ b/net/tcptraceroute-devel/pkg-comment @@ -0,0 +1 @@ +A traceroute implementation using TCP packets diff --git a/net/tcptraceroute-devel/pkg-descr b/net/tcptraceroute-devel/pkg-descr new file mode 100644 index 0000000..a25b74b --- /dev/null +++ b/net/tcptraceroute-devel/pkg-descr @@ -0,0 +1,17 @@ +tcptraceroute is a traceroute implementation using TCP packets. + +The more traditional traceroute(8) sends out either UDP or ICMP ECHO packets +with a TTL of one, and increments the TTL until the destination has been +reached. By printing the gateways that generate ICMP time exceeded messages +along the way, it is able to determine the path packets are taking to reach +the destination. + +The problem is that with the widespread use of firewalls on the modern +Internet, many of the packets that traceroute(8) sends out end up being +filtered, making it impossible to completely trace the path to the destination. +However, in many cases, these firewalls will permit inbound TCP packets to +specific ports that hosts sitting behind the firewall are listening for +connections on. By sending out TCP SYN packets instead of UDP or ICMP ECHO +packets, tcptraceroute is able to bypass the most common firewall filters. + +WWW: http://michael.toren.net/code/tcptraceroute/ diff --git a/net/tcptraceroute-devel/pkg-plist b/net/tcptraceroute-devel/pkg-plist new file mode 100644 index 0000000..046b642 --- /dev/null +++ b/net/tcptraceroute-devel/pkg-plist @@ -0,0 +1 @@ +bin/tcptraceroute |