Author: Dharanendiran <dharanendiran@timesys.com>
Date: Wed, 30 Sep 2026 10:19:26 +0530

Error log:

../../lib/socket/interfaces.c: In function 'query_iface_rx_queues_from_name':
../../lib/socket/interfaces.c:201:14: error: 'ETHTOOL_GRXRINGS' undeclared (first use in this function)
  rxcmd.cmd = ETHTOOL_GRXRINGS;
  
../../third_party/quic/modules/include/uapi/linux/quic.h:48:24: error: 'MSG_WAITFORONE' undeclared here (not in a function)
   48 |  MSG_STREAM_DONTWAIT = MSG_WAITFORONE,
      | 

---
 lib/socket/interfaces.c                            | 4 ++++
 third_party/quic/libquic/netinet/quic.h            | 4 ++++
 third_party/quic/modules/include/uapi/linux/quic.h | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/lib/socket/interfaces.c b/lib/socket/interfaces.c
index 2426ce2..7a9cdde 100644
--- a/lib/socket/interfaces.c
+++ b/lib/socket/interfaces.c
@@ -31,6 +31,10 @@
 #include "linux/ethtool.h"
 #endif
 
+#ifndef ETHTOOL_GRXRINGS
+#define ETHTOOL_GRXRINGS	0x0000002d
+#endif
+
 /****************************************************************************
  Create a struct sockaddr_storage with the netmask bits set to 1.
 ****************************************************************************/
diff --git a/third_party/quic/libquic/netinet/quic.h b/third_party/quic/libquic/netinet/quic.h
index 6582aab..c4a6820 100644
--- a/third_party/quic/libquic/netinet/quic.h
+++ b/third_party/quic/libquic/netinet/quic.h
@@ -30,6 +30,10 @@
 #define IPPROTO_QUIC		261
 #endif
 
+#ifndef MSG_WAITFORONE
+#define MSG_WAITFORONE 0x10000
+#endif
+
 #define QUIC_PRIORITY \
 	"NORMAL:-VERS-ALL:+VERS-TLS1.3:+PSK:+ECDHE-PSK:-CIPHER-ALL:+AES-128-GCM:+AES-256-GCM:" \
 	"+CHACHA20-POLY1305:+AES-128-CCM:-GROUP-ALL:+GROUP-SECP256R1:" \
diff --git a/third_party/quic/modules/include/uapi/linux/quic.h b/third_party/quic/modules/include/uapi/linux/quic.h
index 430c030..649fe36 100644
--- a/third_party/quic/modules/include/uapi/linux/quic.h
+++ b/third_party/quic/modules/include/uapi/linux/quic.h
@@ -19,6 +19,10 @@
 #include <stdint.h>
 #endif
 
+#ifndef MSG_WAITFORONE
+#define MSG_WAITFORONE 0x10000
+#endif
+
 enum {
 	IPPROTO_QUIC = 261,		/* A UDP-Based Multiplexed and Secure Transport	*/
 #define IPPROTO_QUIC		IPPROTO_QUIC
-- 
2.34.1

