%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
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;