Browse code

core: sctp_options rpc updated

Updated sctp_options with the new options (asocmaxrxt,
init_max_attempts, init_max_timeo, hbinterval, pathmaxrxt,
sack_delay, sack_freq, max_burst).

E.g.:
$ sercmd core.sctp_options
{
sctp_socket_rcvbuf: 54784
sctp_socket_sndbuf: 54784
sctp_autoclose: 180
sctp_send_ttl: 32000
sctp_send_retries: 0
sctp_srto_initial: 3000
sctp_srto_max: 60000
sctp_srto_min: 1000
sctp_asocmaxrxt: 10
sctp_init_max_attempts: 8
sctp_init_max_timeo: 60000
sctp_hbinterval: 30000
sctp_pathmaxrxt: 5
sctp_sack_delay: 200
sctp_sack_freq: 0
sctp_max_burst: 4
}

Andrei Pelinescu-Onciul authored on 10/06/2009 23:23:52
Showing 1 changed files
... ...
@@ -613,7 +613,7 @@ static void core_sctp_options(rpc_t* rpc, void* c)
613 613
 	if (!sctp_disable){
614 614
 		sctp_options_get(&t);
615 615
 		rpc->add(c, "{", &handle);
616
-		rpc->struct_add(handle, "dddddddd",
616
+		rpc->struct_add(handle, "dddddddddddddddd",
617 617
 			"sctp_socket_rcvbuf",	t.so_rcvbuf,
618 618
 			"sctp_socket_sndbuf",	t.so_sndbuf,
619 619
 			"sctp_autoclose",		t.autoclose,
... ...
@@ -621,7 +621,15 @@ static void core_sctp_options(rpc_t* rpc, void* c)
621 621
 			"sctp_send_retries",	t.send_retries,
622 622
 			"sctp_srto_initial",	t.srto_initial,
623 623
 			"sctp_srto_max",		t.srto_max,
624
-			"sctp_srto_min",		t.srto_min
624
+			"sctp_srto_min",		t.srto_min,
625
+			"sctp_asocmaxrxt",	t.asocmaxrxt,
626
+			"sctp_init_max_attempts",	t.init_max_attempts,
627
+			"sctp_init_max_timeo",t.init_max_timeo,
628
+			"sctp_hbinterval",	t.hbinterval,
629
+			"sctp_pathmaxrxt",	t.pathmaxrxt,
630
+			"sctp_sack_delay",	t.sack_delay,
631
+			"sctp_sack_freq",	t.sack_freq,
632
+			"sctp_max_burst",	t.max_burst
625 633
 		);
626 634
 	}else{
627 635
 		rpc->fault(c, 500, "sctp support disabled");