Page MenuHomeFreeBSD

D11072.id30394.diff
No OneTemporary

D11072.id30394.diff

Index: net/lft/Makefile
===================================================================
--- net/lft/Makefile
+++ net/lft/Makefile
@@ -3,6 +3,7 @@
PORTNAME= lft
PORTVERSION= 3.79
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= http://pwhois.org/get/
@@ -15,8 +16,6 @@
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror auto-accept
-BROKEN_FreeBSD_12= fails to compile: lft_types.h: pcap-int.h: No such file or directory
-
GNU_CONFIGURE= yes
PLIST_FILES= sbin/lft bin/whob man/man8/lft.8.gz man/man8/whob.8.gz
Index: net/lft/files/patch-lft__icmptrace.c
===================================================================
--- /dev/null
+++ net/lft/files/patch-lft__icmptrace.c
@@ -0,0 +1,14 @@
+--- lft_icmptrace.c.orig 2014-04-14 23:19:16 UTC
++++ lft_icmptrace.c
+@@ -108,7 +108,10 @@ int generateICMPPacket(
+ packet->ip_hdr->ip_tos = 0;
+ packet->ip_hdr->ip_off = IP_DF;
+ packet->ip_hdr->ip_len = packet->packet_len;
+-#ifndef SCREWED_IP_LEN
++#ifdef SCREWED_IP_LEN
++ packet->ip_hdr->ip_off = ntohs(packet->ip_hdr->ip_off);
++ packet->ip_hdr->ip_len = ntohs(packet->ip_hdr->ip_len);
++#else
+ packet->ip_hdr->ip_off = htons(packet->ip_hdr->ip_off);
+ packet->ip_hdr->ip_len = htons(packet->ip_hdr->ip_len);
+ #endif
Index: net/lft/files/patch-lft__lib.c
===================================================================
--- /dev/null
+++ net/lft/files/patch-lft__lib.c
@@ -0,0 +1,11 @@
+--- lft_lib.c.orig 2016-06-21 21:25:16 UTC
++++ lft_lib.c
+@@ -2667,6 +2667,8 @@ open_sockets (lft_session_params * sess)
+
+ #ifdef SCREWED_IP_LEN
+ /* trace_packet.ip_hdr.ip_len = sizeof (struct ip) + sizeof(struct tcphdr); */
++ sess->trace_packet.ip_hdr.ip_len = ntohs (sess->trace_packet.ip_hdr.ip_len);
++ sess->trace_packet.ip_hdr.ip_off = ntohs(sess->trace_packet.ip_hdr.ip_off);
+ #else
+ sess->trace_packet.ip_hdr.ip_len = htons (sess->trace_packet.ip_hdr.ip_len);
+ sess->trace_packet.ip_hdr.ip_off = htons(sess->trace_packet.ip_hdr.ip_off);
Index: net/lft/files/patch-lft__types.h
===================================================================
--- /dev/null
+++ net/lft/files/patch-lft__types.h
@@ -0,0 +1,11 @@
+--- lft_types.h.orig 2016-05-02 14:31:54 UTC
++++ lft_types.h
+@@ -101,7 +101,7 @@ typedef signed long n_time;
+ #if !defined(DARWIN) && !defined(NETBSD)
+ #define HAVE_SNPRINTF
+ #define HAVE_VSNPRINTF
+-#if !defined(OPENBSD)
++#if !defined(OPENBSD) && !defined(__FreeBSD__)
+ #include <pcap-int.h>
+ #endif
+ #endif

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 15, 7:02 AM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28731062
Default Alt Text
D11072.id30394.diff (2 KB)

Event Timeline