3
## All lines beginning with `## DP:' are a description of the patch.
4
## DP: show the \ really, see #285507
6
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
7
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
10
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14
-patch) patch $patch_opts -p1 < $0;;
15
-unpatch) patch $patch_opts -p1 -R < $0;;
17
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
23
--- iproute-20010824/ip/iproute.c
24
+++ iproute-20010824/ip/iproute.c
26
fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n");
27
fprintf(stderr, " [ rtt NUMBER ] [ rttvar NUMBER ]\n");
28
fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ ssthresh REALM ]\n");
29
- fprintf(stderr, " [ realms REALM ]\n");
30
+ fprintf(stderr, " [ realms REALM ] [ hoplimit NUMBER ] [ initcwnd NUMBER ]\n");
31
fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
32
fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n");
33
fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
44
invarg("\"reordering\" value is invalid\n", *argv);
45
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_REORDERING, reord);
48
+ } else if (strcmp(*argv, "hoplimit") == 0) {
51
+ if (strcmp(*argv, "lock") == 0) {
52
+ mxlock |= (1<<RTAX_HOPLIMIT);
55
+ if (get_unsigned(&hoplim, *argv, 0))
56
+ invarg("\"hoplimit\" value is invalid\n", *argv);
57
+ rta_addattr32(mxrta, sizeof(mxbuf), RTAX_HOPLIMIT, hoplim);
60
+ } else if (strcmp(*argv, "initcwnd") == 0) {
63
+ if (strcmp(*argv, "lock") == 0) {
64
+ mxlock |= (1<<RTAX_HOPLIMIT);
67
+ if (get_unsigned(&initcwnd, *argv, 0))
68
+ invarg("\"initcwnd\" value is invalid\n", *argv);
69
+ rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITCWND, initcwnd);
71
} else if (strcmp(*argv, "rtt") == 0) {
74
--- iproute-20010824.orig/doc/ip-cref.tex
75
+++ iproute-20010824/doc/ip-cref.tex
76
@@ -1324,2 +1324,15 @@
78
+\item \verb|hoplimit NUMBER|
80
+--- [2.5.74+ only] Hop limit on the path to this destination. If it is not
81
+ given, Linux uses the value selected with \verb|sysctl| variable
82
+ \verb|net/ipv4/ip_default_ttl|.
84
+\item \verb|initcwnd NUMBER|
86
+--- [2.5.70+ only] Initial congestion window size when establishing
87
+ connections to this destination. This value is multiplied with the
88
+ MSS (``Maximal Segment Size'') for the connection to get the actual
89
+ window size. If it is not given (or set to zero), Linux uses the
90
+ values specified in~\cite{RFC2414}.
94
+\bibitem{RFC2414} M.~Allman, S.~Floyd, C.~Partridge.
95
+``Increasing TCP's Initial Window'', RFC-2414.