소스 검색

tcp: filled description of tcp_accept_no_cl

- added missing description in tcp options structure
Daniel-Constantin Mierla 15 년 전
부모
커밋
866a36998f
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      tcp_options.c
  2. 2 1
      tcp_options.h

+ 2 - 0
tcp_options.c

@@ -110,6 +110,8 @@ static cfg_def_t tcp_cfg_def[] = {
 		"flags used for adding new aliases (FORCE_ADD:1 , REPLACE:2) "},
 		"flags used for adding new aliases (FORCE_ADD:1 , REPLACE:2) "},
 	{ "new_conn_alias_flags", CFG_VAR_INT | CFG_ATOMIC, 0,    2,  0,         0,
 	{ "new_conn_alias_flags", CFG_VAR_INT | CFG_ATOMIC, 0,    2,  0,         0,
 		"flags for the def. aliases for a new conn. (FORCE_ADD:1, REPLACE:2 "},
 		"flags for the def. aliases for a new conn. (FORCE_ADD:1, REPLACE:2 "},
+	{ "accept_no_cl",   CFG_VAR_INT | CFG_ATOMIC,   0,        1,  0,         0,
+		"accept TCP messges without Content-Lenght "},
 	/* internal and/or "fixed" versions of some vars
 	/* internal and/or "fixed" versions of some vars
 	   (not supposed to be writeable, read will provide only debugging value*/
 	   (not supposed to be writeable, read will provide only debugging value*/
 	{ "rd_buf_size", CFG_VAR_INT | CFG_ATOMIC,    512,    65536,  0,         0,
 	{ "rd_buf_size", CFG_VAR_INT | CFG_ATOMIC,    512,    65536,  0,         0,

+ 2 - 1
tcp_options.h

@@ -138,10 +138,11 @@ struct cfg_group_tcp{
 	int accept_aliases;
 	int accept_aliases;
 	int alias_flags;
 	int alias_flags;
 	int new_conn_alias_flags;
 	int new_conn_alias_flags;
+	int accept_no_cl;  /* on/off - accpet messages without content-lenght */
+
 	/* internal, "fixed" vars */
 	/* internal, "fixed" vars */
 	unsigned int rd_buf_size; /* read buffer size (should be > max. datagram)*/
 	unsigned int rd_buf_size; /* read buffer size (should be > max. datagram)*/
 	unsigned int wq_blk_size; /* async write block size (debugging use) */
 	unsigned int wq_blk_size; /* async write block size (debugging use) */
-	int accept_no_cl;  /* on/off - accpet messages without content-lenght */
 };
 };
 
 
 extern struct cfg_group_tcp tcp_default_cfg;
 extern struct cfg_group_tcp tcp_default_cfg;