View | Details | Raw Unified | Return to bug 212283 | Differences between
and this patch

Collapse All | Expand All

(-)ntraceroute/files/patch-traceroute.c (-12 lines)
Lines 1-17 Link Here
1
--- traceroute.c.orig	2016-09-02 21:07:07 UTC
1
--- traceroute.c.orig	2016-09-02 21:07:07 UTC
2
+++ traceroute.c
2
+++ traceroute.c
3
@@ -2,6 +2,11 @@
4
 /*
5
  *  STILL BROKEN: traceroute -g on linux (LSRR)
6
  */
7
+#include <string.h>
8
+#if __FreeBSD_version >= 1100030
9
+#define	BYTESWAP_IP_FLAGS
10
+#define	BYTESWAP_IP_LEN
11
+#endif
12
 #define TRACE_TOS 1
13
 #define SPRAY
14
 #define FIXT
15
@@ -798,7 +803,7 @@ struct opacket {
3
@@ -798,7 +803,7 @@ struct opacket {
16
               struct icmp icmp_probe;
4
               struct icmp icmp_probe;
17
         } ip_payload;
5
         } ip_payload;
(-)ntraceroute/Makefile (-1 / +7 lines)
Lines 22-29 Link Here
22
22
23
PLIST_FILES=	sbin/${PORTNAME}
23
PLIST_FILES=	sbin/${PORTNAME}
24
24
25
.include <bsd.port.pre.mk>
26
27
.if (${OSVERSION} >= 1100030)
28
BUILD_FLAGS=	-DBYTESWAP_IP_FLAGS -DBYTESWAP_IP_LEN
29
.endif
30
25
do-build:
31
do-build:
26
	${CC} -o ${WRKSRC}/${PORTNAME} -lm \
32
	${CC} ${BUILD_FLAGS} -o ${WRKSRC}/${PORTNAME} -lm \
27
	    ${WRKSRC}/${DISTFILES}
33
	    ${WRKSRC}/${DISTFILES}
28
34
29
do-install:
35
do-install:

Return to bug 212283