FreeBSD Bugzilla – Attachment 178331 Details for
Bug 212283
oversized IP datagrams on raw socket with IP_RAWOUTPUT hang network interface drivers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for net/ntraceroute port
ntraceroute.diff (text/plain), 1.01 KB, created by
Andrey V. Elsukov
on 2016-12-27 19:38:25 UTC
(
hide
)
Description:
Proposed patch for net/ntraceroute port
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2016-12-27 19:38:25 UTC
Size:
1.01 KB
patch
obsolete
>--- ntraceroute/files/patch-traceroute.c 2016-09-03 00:12:22.000000000 +0300 >+++ ntraceroute/files/patch-traceroute.c 2016-12-27 22:30:37.575672000 +0300 >@@ -1,17 +1,5 @@ > --- traceroute.c.orig 2016-09-02 21:07:07 UTC > +++ traceroute.c >-@@ -2,6 +2,11 @@ >- /* >- * STILL BROKEN: traceroute -g on linux (LSRR) >- */ >-+#include <string.h> >-+#if __FreeBSD_version >= 1100030 >-+#define BYTESWAP_IP_FLAGS >-+#define BYTESWAP_IP_LEN >-+#endif >- #define TRACE_TOS 1 >- #define SPRAY >- #define FIXT > @@ -798,7 +803,7 @@ struct opacket { > struct icmp icmp_probe; > } ip_payload; >--- ntraceroute/Makefile 2016-09-03 00:12:22.000000000 +0300 >+++ ntraceroute/Makefile 2016-12-27 22:31:11.638819000 +0300 >@@ -22,8 +22,14 @@ > > PLIST_FILES= sbin/${PORTNAME} > >+.include <bsd.port.pre.mk> >+ >+.if (${OSVERSION} >= 1100030) >+BUILD_FLAGS= -DBYTESWAP_IP_FLAGS -DBYTESWAP_IP_LEN >+.endif >+ > do-build: >- ${CC} -o ${WRKSRC}/${PORTNAME} -lm \ >+ ${CC} ${BUILD_FLAGS} -o ${WRKSRC}/${PORTNAME} -lm \ > ${WRKSRC}/${DISTFILES} > > do-install:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212283
:
174255
|
174350
|
174351
| 178331 |
178398
|
178409
|
178410
|
178417
|
178855