Browse Source

topoh: set the tcp clone rcvbuf on in mod init

Daniel-Constantin Mierla 13 years ago
parent
commit
f433198d66
1 changed files with 4 additions and 0 deletions
  1. 4 0
      modules/topoh/topoh_mod.c

+ 4 - 0
modules/topoh/topoh_mod.c

@@ -41,6 +41,7 @@
 #include "../../sr_module.h"
 #include "../../events.h"
 #include "../../dprint.h"
+#include "../../tcp_options.h"
 #include "../../ut.h"
 #include "../../forward.h"
 #include "../../parser/msg_parser.h"
@@ -184,6 +185,9 @@ static int mod_init(void)
 	th_mask_init();
 	sr_event_register_cb(SREV_NET_DATA_IN, th_msg_received);
 	sr_event_register_cb(SREV_NET_DATA_OUT, th_msg_sent);
+#ifdef USE_TCP
+	tcp_set_clone_rcvbuf(1);
+#endif
 	return 0;
 error:
 	return -1;