Subject: Re: Refactoring Congestion Control (take 2)
To: None <rpaulo@fnop.net>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-net
Date: 10/06/2006 18:29:01
> Previously, I wrote:
> 
> > 4) I'm facing a problem with our sysctl API.
> >
> > 	# sysctl net.inet.tcp.congctl.selected
> > 	net.inet.tcp.congctl.selected = newreno
> > 	# sysctl -w net.inet.tcp.congctl.selected=reno
> > 	sysctl: net.inet.tcp.congctl.selected: sysctl() failed with Cannot  
> > allocate memory
> > 	# sysctl net.inet.tcp.congctl.selected
> > 	net.inet.tcp.congctl.selected = reno
> 
> I still have this problem. Any ideas?
> 
> --
> Rui Paulo

sysctl_createv(clog, 0, NULL, NULL,
		CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
		CTLTYPE_STRING, "selected",
		SYSCTL_DESCR("Selected Congestion Control Mechanism"),
		sysctl_tcp_congctl, 0, &tcp_congctl_global_name, 0,
		CTL_NET, pf, IPPROTO_TCP, congctl_node,
		CTL_CREATE, CTL_EOL);

should be:

		sysctl_tcp_congctl, 0, NULL, TCPCC_MAXLEN,

yes, our sysctl is too cryptic.

YAMAMOTO Takashi