[newlib-cygwin] Cygwin: Add #define for IPTOS_DSCP_VA in <netinet/ip.h>
Mark Geisert
mgeisert@sourceware.org
Tue Sep 29 06:07:42 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6fde14c0e24aa7e6dd73ba96b8ec60962261e2d5
commit 6fde14c0e24aa7e6dd73ba96b8ec60962261e2d5
Author: Mark Geisert <mark@maxrnd.com>
Date: Mon Sep 28 22:54:56 2026 -0700
Cygwin: Add #define for IPTOS_DSCP_VA in <netinet/ip.h>
Define IPTOS_DSCP_VA (0xb0) according to RFC 5865 to complete the DSCP
code point definitions in <netinet/ip.h>. This fixes compilation for
utilities like openbsd-netcat.
I provide this patch to the Cygwin sources under the 2-clause BSD license.
Signed-off-by: Michał Korczak <omikorin@disroot.org>
Reviewed-by: Mark Geisert <mark@maxrnd.com>
Diff:
---
winsup/cygwin/include/netinet/ip.h | 3 ++-
winsup/cygwin/release/3.7.0 | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/include/netinet/ip.h b/winsup/cygwin/include/netinet/ip.h
index 5db1bd9ce..8b67a5c6e 100644
--- a/winsup/cygwin/include/netinet/ip.h
+++ b/winsup/cygwin/include/netinet/ip.h
@@ -83,7 +83,7 @@ struct ip {
#define IP_MAXPACKET 65535 /* maximum packet size */
/*
- * Definitions for DiffServ Codepoints as per RFC2474
+ * Definitions for DiffServ Codepoints as per RFC2474 and RFC5865.
*/
#define IPTOS_DSCP_CS0 0x00
#define IPTOS_DSCP_CS1 0x20
@@ -103,6 +103,7 @@ struct ip {
#define IPTOS_DSCP_AF42 0x90
#define IPTOS_DSCP_AF43 0x98
#define IPTOS_DSCP_CS5 0xa0
+#define IPTOS_DSCP_VA 0xb0
#define IPTOS_DSCP_EF 0xb8
#define IPTOS_DSCP_CS6 0xc0
#define IPTOS_DSCP_CS7 0xe0
diff --git a/winsup/cygwin/release/3.7.0 b/winsup/cygwin/release/3.7.0
index a18f0b3d9..7db780179 100644
--- a/winsup/cygwin/release/3.7.0
+++ b/winsup/cygwin/release/3.7.0
@@ -28,6 +28,8 @@ What's new:
- Support for uid/gid passthrough for NFSv4 clients without involving LDAP.
+- Add #define for IPTOS_DSCP_VA in <netinet/ip.h>.
+
Fixes:
------
More information about the Cygwin-cvs
mailing list