Skip to content

Commit b9ce18d

Browse files
committed
setup.md: add --ip-toc and --mptcp
Fixes #464 Fixes #465 Closes #531
1 parent 152b2e2 commit b9ce18d

File tree

6 files changed

+59
-14
lines changed

6 files changed

+59
-14
lines changed

SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
* [Compression](usingcurl/transfers/compression.md)
107107
* [Skip download if already done](usingcurl/transfers/skip.md)
108108
* [Connections](usingcurl/connections/README.md)
109-
* [VLAN](usingcurl/connections/vlan.md)
109+
* [Setup](usingcurl/connections/setup.md)
110110
* [Name resolve tricks](usingcurl/connections/name.md)
111111
* [Connection timeout](usingcurl/connections/timeout.md)
112112
* [Happy Eyeballs](usingcurl/connections/happy.md)

index-words

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--http2-prior-knowledge
3434
--http3
3535
--http3-only
36+
--ip-tos
3637
--ipfs-gateway
3738
--json
3839
--keepalive-cnt
@@ -44,6 +45,7 @@
4445
--max-filesize
4546
--max-time
4647
--metalink
48+
--mptcp
4749
--negotiate
4850
--netrc-file
4951
--netrc-optional
@@ -342,6 +344,7 @@ MITM-proxies
342344
MQTT
343345
mTLS
344346
multi-threading
347+
Multipath TCP
345348
name resolving
346349
nghttp2
347350
nix
@@ -417,8 +420,10 @@ TFTP
417420
TLS
418421
TLS backend
419422
TODO
423+
Traffic Class
420424
transfer-encoding
421425
trurl
426+
Type of Service
422427
Ubuntu
423428
URL Globbing
424429
URL parser

usingcurl/connections/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For ordinary command line usage, operating on a URL, these are details which
99
are taken care of under the hood, and which you can mostly ignore. But at times
1010
you might find yourself wanting to tweak the specifics…
1111

12-
* [VLAN](vlan.md)
12+
* [Setup](setup.md)
1313
* [Name resolve tricks](name.md)
1414
* [Connection timeout](timeout.md)
1515
* [Happy Eyeballs](happy.md)

usingcurl/connections/setup.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Setup
2+
3+
There are several options that let the user control different aspects of how
4+
connections are setup.
5+
6+
## VLAN
7+
8+
With the `--vlan-priority` command line option you set a priority value
9+
between 0 and 7 that is set in the Ethernet header. It is thus limited to your
10+
local network only and will not be used across any routers.
11+
12+
VLAN priority as defined in IEEE 802.1Q.
13+
14+
Example:
15+
16+
curl --vlan-priority 4 https://example.com
17+
18+
## Type of Service
19+
20+
The IPv4 protocol header has a "Type of Service (TOS)" field. It is called
21+
"Traffic Class" in IPv6. A user can set the value using the `--ip-tos` option
22+
to either a numerical value between zero and 255, or by using one of the
23+
recognized names:
24+
25+
CS0, CS1, CS2, CS3, CS4, CS5, CS6, CS7, AF11, AF12, AF13,
26+
AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43, EF,
27+
VOICE-ADMIT, ECT1, ECT0, CE, LE, LOWCOST, LOWDELAY,
28+
THROUGHPUT, RELIABILITY, MINCOST
29+
30+
Example:
31+
32+
curl --ip-tos CS5 https://example.com
33+
34+
## Multipath TCP
35+
36+
Multipath TCP is a way for a TCP connection to use multiple concurrent network
37+
paths to maximize throughput and increase redundancy, compared to the normal
38+
single path that ordinary TCP uses.
39+
40+
You can ask curl to use Multipath TCP with the `--mptcp` option. It only works
41+
on Linux and it requires Linux 5.6 or later. It has no effect on QUIC or UDP
42+
connections.
43+
44+
The server curl connects to must also support MPTCP. If not, the connection
45+
seamlessly falls back to "normal" TCP.
46+
47+
Example:
48+
49+
curl --mptcp https://example.com

usingcurl/connections/vlan.md

-11
This file was deleted.

wordlist.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ MITM
325325
mk
326326
Monnerat
327327
MPL
328+
MPTCP
328329
MQTT
329330
mqtt
330331
mqtts
@@ -338,6 +339,7 @@ MSYS
338339
msys
339340
mTLS
340341
multicwd
342+
Multipath
341343
MultiSSL
342344
mumbo
343345
mutex
@@ -537,6 +539,7 @@ TODO
537539
Tomtom
538540
toolchains
539541
Torre
542+
TOS
540543
TrackMemory
541544
trurl
542545
Tse
@@ -600,4 +603,3 @@ Zakrzewski
600603
Zitzmann
601604
zlib
602605
zsh
603-

0 commit comments

Comments
 (0)