[PATCH v2] cygwin: define IPTOS_DSCP_VA in netinet/ip.h

Michał Korczak omikorin@disroot.org
Sun Sep 20 04:32:47 GMT 2026


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>
---
v2: Fix whitespace formatting to match surrounding code style.

 winsup/cygwin/include/netinet/ip.h | 1 +
 1 file changed, 1 insertion(+)
 
 winsup/cygwin/include/netinet/ip.h | 3 ++-
 1 file changed, 2 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
-- 
2.55.0.windows.5



More information about the Cygwin-patches mailing list