41 lines
868 B
Diff
41 lines
868 B
Diff
--- traceroute/mod-tcp.c 2013-03-27 15:01:15.000000000 +0100
|
|
+++ traceroute/mod-tcp.c 2014-12-28 06:35:44.165642089 +0100
|
|
@@ -26,6 +26,37 @@
|
|
#define IP_MTU 14
|
|
#endif
|
|
|
|
+#ifndef TCPOPT_NOP
|
|
+# define TCPOPT_NOP 1
|
|
+#endif
|
|
+#ifndef TCPOPT_MAXSEG
|
|
+# define TCPOPT_MAXSEG 2
|
|
+#endif
|
|
+#ifndef TCPOPT_WINDOW
|
|
+# define TCPOPT_WINDOW 3
|
|
+#endif
|
|
+#ifndef TCPOPT_SACK_PERMITTED
|
|
+# define TCPOPT_SACK_PERMITTED 4
|
|
+#endif
|
|
+#ifndef TCPOPT_SACK
|
|
+# define TCPOPT_SACK 5
|
|
+#endif
|
|
+#ifndef TCPOPT_TIMESTAMP
|
|
+# define TCPOPT_TIMESTAMP 8
|
|
+#endif
|
|
+
|
|
+#ifndef TCPOLEN_MAXSEG
|
|
+# define TCPOLEN_MAXSEG 4
|
|
+#endif
|
|
+#ifndef TCPOLEN_WINDOW
|
|
+# define TCPOLEN_WINDOW 3
|
|
+#endif
|
|
+#ifndef TCPOLEN_SACK_PERMITTED
|
|
+# define TCPOLEN_SACK_PERMITTED 2
|
|
+#endif
|
|
+#ifndef TCPOLEN_TIMESTAMP
|
|
+# define TCPOLEN_TIMESTAMP 10
|
|
+#endif
|
|
|
|
static sockaddr_any dest_addr = {{ 0, }, };
|
|
static unsigned int dest_port = 0;
|