tcp: config option for the async write block size
[sip-router] / cfg.y
diff --git a/cfg.y b/cfg.y
index 861dc14..862ff74 100644 (file)
--- a/cfg.y
+++ b/cfg.y
@@ -359,6 +359,8 @@ static void free_socket_id_lst(struct socket_id* i);
 %token TCP_OPT_BUF_WRITE
 %token TCP_OPT_CONN_WQ_MAX
 %token TCP_OPT_WQ_MAX
+%token TCP_OPT_RD_BUF
+%token TCP_OPT_WQ_BLK
 %token TCP_OPT_DEFER_ACCEPT
 %token TCP_OPT_DELAYED_ACK
 %token TCP_OPT_SYNCNT
@@ -907,7 +909,23 @@ assign_stm:
                        warn("tcp support not compiled in");
                #endif
        }
-       | TCP_OPT_WQ_MAX error { yyerror("boolean value expected"); }
+       | TCP_OPT_WQ_MAX error { yyerror("number expected"); }
+       | TCP_OPT_RD_BUF EQUAL NUMBER {
+               #ifdef USE_TCP
+                       tcp_default_cfg.rd_buf_size=$3;
+               #else
+                       warn("tcp support not compiled in");
+               #endif
+       }
+       | TCP_OPT_RD_BUF error { yyerror("number expected"); }
+       | TCP_OPT_WQ_BLK EQUAL NUMBER {
+               #ifdef USE_TCP
+                       tcp_default_cfg.wq_blk_size=$3;
+               #else
+                       warn("tcp support not compiled in");
+               #endif
+       }
+       | TCP_OPT_WQ_BLK error { yyerror("number expected"); }
        | TCP_OPT_DEFER_ACCEPT EQUAL NUMBER {
                #ifdef USE_TCP
                        tcp_default_cfg.defer_accept=$3;