diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-27 23:20:24 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 11:24:36 +0200 |
commit | adc9939a7b9afccb4dbbda7f53d569fe38bfb391 (patch) | |
tree | 9710bfd9b91f328c4a15b34d3b90dc9766950130 /Kernel/API | |
parent | 20c7fcfedf9866f9a6a091a809014ec7a48d9932 (diff) | |
download | serenity-adc9939a7b9afccb4dbbda7f53d569fe38bfb391.zip |
Kernel+LibC: Add support for the IPv4 TOS field via the IP_TOS sockopt
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/POSIX/netinet/in.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/netinet/in.h b/Kernel/API/POSIX/netinet/in.h index 9d4d54bf22..272f1ab44e 100644 --- a/Kernel/API/POSIX/netinet/in.h +++ b/Kernel/API/POSIX/netinet/in.h @@ -22,6 +22,7 @@ typedef uint32_t in_addr_t; #define IN_LOOPBACKNET 127 +#define IP_TOS 1 #define IP_TTL 2 #define IP_MULTICAST_LOOP 3 #define IP_ADD_MEMBERSHIP 4 @@ -29,6 +30,10 @@ typedef uint32_t in_addr_t; #define IP_MULTICAST_IF 6 #define IP_MULTICAST_TTL 7 +#define IPTOS_LOWDELAY 16 +#define IPTOS_THROUGHPUT 8 +#define IPTOS_RELIABILITY 4 + /* Make sure these don't overlap with any other IPv4 and IPv6 options */ #define MCAST_JOIN_SOURCE_GROUP 100 #define MCAST_LEAVE_SOURCE_GROUP 101 |