diff options
author | roam <roam@FreeBSD.org> | 2003-03-05 14:24:10 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2003-03-05 14:24:10 +0000 |
commit | 734b8a40e7470cf0ecbffff227eb0224f370386d (patch) | |
tree | 0eec690eabed8840d78b54dfb3dc4eda8b095929 /net/lft/files | |
parent | 77e522dff2087ffbecfb40d151b4b8a4d8c7cdfd (diff) | |
download | FreeBSD-ports-734b8a40e7470cf0ecbffff227eb0224f370386d.zip FreeBSD-ports-734b8a40e7470cf0ecbffff227eb0224f370386d.tar.gz |
Add LFT, the Level 4 Traceroute utility.
PR: 48475
Submitted by: Marco P. Rodrigues <drkangel@drkangel.org>
Diffstat (limited to 'net/lft/files')
-rw-r--r-- | net/lft/files/patch-lft.c | 20 | ||||
-rw-r--r-- | net/lft/files/patch-lft_ifname.c | 10 |
2 files changed, 30 insertions, 0 deletions
diff --git a/net/lft/files/patch-lft.c b/net/lft/files/patch-lft.c new file mode 100644 index 0000000..5e21741 --- /dev/null +++ b/net/lft/files/patch-lft.c @@ -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) diff --git a/net/lft/files/patch-lft_ifname.c b/net/lft/files/patch-lft_ifname.c new file mode 100644 index 0000000..caf12d1 --- /dev/null +++ b/net/lft/files/patch-lft_ifname.c @@ -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> |