curl/docs/cmdline-opts/ip-tos.md
Orgad Shaneh 3c20ae08b9
curl: support IP Type of Service / Traffic Class: --ip-tos
Add --ip-tos option to the command line tool for setting TOS for IPv4 or
Traffic Class for IPv6.

Closes #13606
2024-06-07 10:48:40 +02:00

720 B

c SPDX-License-Identifier Long Arg Help Added Category Protocols Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl ip-tos <string> Set IP Type of Service or Traffic Class 8.9.0 connection All single
tcp-nodelay
--ip-tos CS5 $URL

--ip-tos

Set Type of Service (TOS) for IPv4 or Traffic Class for IPv6. (Added in 8.9.0).

The values allowed for <string> can be a numeric value between 1 and 255 or one of the following:

  • CS0
  • CS1
  • CS2
  • CS3
  • CS4
  • CS5
  • CS6
  • CS7
  • AF11
  • AF12
  • AF13
  • AF21
  • AF22
  • AF23
  • AF31
  • AF32
  • AF33
  • AF41
  • AF42
  • AF43
  • EF
  • VOICE-ADMIT
  • ECT1
  • ECT0
  • CE
  • LE
  • LOWCOST
  • LOWDELAY
  • THROUGHPUT
  • RELIABILITY
  • MINCOST