--- ./modules/afsocket/afsocket-grammar.c_orig	2025-03-03 03:28:25.890137922 -0500
+++ ./modules/afsocket/afsocket-grammar.c	2025-03-03 03:28:53.133130551 -0500
@@ -6654,7 +6654,7 @@
 
   case 220: /* inet_socket_option: KW_IP_TOS '(' nonnegative_integer ')'  */
 #line 1394 "modules/afsocket/afsocket-grammar.y"
-                                                              { ((SocketOptionsInet *) last_sock_options)->ip_tos = (yyvsp[-1].num); }
+                                                              { ((SocketOptionsInet *) last_sock_options)->ip_tos1 = (yyvsp[-1].num); }
 #line 6659 "modules/afsocket/afsocket-grammar.c"
     break;
 
--- ./modules/afsocket/afsocket-grammar.y_orig	2025-03-03 03:29:51.003063042 -0500
+++ ./modules/afsocket/afsocket-grammar.y	2025-03-03 03:29:12.800068750 -0500
@@ -1391,7 +1391,7 @@
 inet_socket_option
 	: socket_option
 	| KW_IP_TTL '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_ttl = $3; }
-	| KW_IP_TOS '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_tos = $3; }
+	| KW_IP_TOS '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_tos1 = $3; }
 	| KW_IP_FREEBIND '(' yesno ')'              { ((SocketOptionsInet *) last_sock_options)->ip_freebind = $3; }
 	| KW_INTERFACE '(' string ')'		    { socket_options_inet_set_interface_name((SocketOptionsInet *) last_sock_options, $3); free($3); }
 	| KW_TCP_KEEPALIVE_TIME '(' nonnegative_integer ')'
--- ./modules/afsocket/afsocket-grammar.ym_orig	2025-03-03 03:30:00.170584997 -0500
+++ ./modules/afsocket/afsocket-grammar.ym	2025-03-03 03:30:12.357541056 -0500
@@ -977,7 +977,7 @@
 inet_socket_option
 	: socket_option
 	| KW_IP_TTL '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_ttl = $3; }
-	| KW_IP_TOS '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_tos = $3; }
+	| KW_IP_TOS '(' nonnegative_integer ')'               { ((SocketOptionsInet *) last_sock_options)->ip_tos1 = $3; }
 	| KW_IP_FREEBIND '(' yesno ')'              { ((SocketOptionsInet *) last_sock_options)->ip_freebind = $3; }
 	| KW_INTERFACE '(' string ')'		    { socket_options_inet_set_interface_name((SocketOptionsInet *) last_sock_options, $3); free($3); }
 	| KW_TCP_KEEPALIVE_TIME '(' nonnegative_integer ')'
--- ./modules/afsocket/afsocket-parser.c_orig	2025-03-03 03:30:22.082298700 -0500
+++ ./modules/afsocket/afsocket-parser.c	2025-03-03 03:30:38.293259773 -0500
@@ -76,7 +76,7 @@
   { "port",               KW_PORT },
   { "destport",           KW_DESTPORT },
   { "ip_ttl",             KW_IP_TTL },
-  { "ip_tos",             KW_IP_TOS },
+  { "ip_tos1",             KW_IP_TOS },
   { "ip_freebind",        KW_IP_FREEBIND },
   { "so_broadcast",       KW_SO_BROADCAST },
   { "so_rcvbuf",          KW_SO_RCVBUF },
--- ./modules/afsocket/socket-options-inet.c_orig	2025-03-03 03:30:55.185681517 -0500
+++ ./modules/afsocket/socket-options-inet.c	2025-03-03 03:31:23.940536851 -0500
@@ -170,8 +170,8 @@
           if (self->ip_ttl && (dir & AFSOCKET_DIR_SEND))
             setsockopt(fd, SOL_IP, IP_TTL, &self->ip_ttl, sizeof(self->ip_ttl));
         }
-      if (self->ip_tos && (dir & AFSOCKET_DIR_SEND))
-        setsockopt(fd, SOL_IP, IP_TOS, &self->ip_tos, sizeof(self->ip_tos));
+      if (self->ip_tos1 && (dir & AFSOCKET_DIR_SEND))
+        setsockopt(fd, SOL_IP, IP_TOS, &self->ip_tos1, sizeof(self->ip_tos1));
 
       if (self->ip_freebind && (dir & AFSOCKET_DIR_RECV))
         {
--- ./modules/afsocket/socket-options-inet.h_orig	2025-03-03 03:31:33.999907357 -0500
+++ ./modules/afsocket/socket-options-inet.h	2025-03-03 03:31:45.121413826 -0500
@@ -30,7 +30,7 @@
   SocketOptions super;
   /* user settings */
   gint ip_ttl;
-  gint ip_tos;
+  gint ip_tos1;
   gboolean ip_freebind;
   gint tcp_keepalive_time;
   gint tcp_keepalive_intvl;
