linux/net/dccp
Arnaldo Carvalho de Melo e55d912f5b [DCCP] feat: Introduce sysctls for the default features
[root@qemu ~]# for a in /proc/sys/net/dccp/default/* ; do echo $a ; cat $a ; done
/proc/sys/net/dccp/default/ack_ratio
2
/proc/sys/net/dccp/default/rx_ccid
3
/proc/sys/net/dccp/default/send_ackvec
1
/proc/sys/net/dccp/default/send_ndp
1
/proc/sys/net/dccp/default/seq_window
100
/proc/sys/net/dccp/default/tx_ccid
3
[root@qemu ~]#

So if wanting to test ccid3 as the tx CCID one can just do:

[root@qemu ~]# echo 3 > /proc/sys/net/dccp/default/tx_ccid
[root@qemu ~]# echo 2 > /proc/sys/net/dccp/default/rx_ccid
[root@qemu ~]# cat /proc/sys/net/dccp/default/[tr]x_ccid
2
3
[root@qemu ~]#

Of course we also need the setsockopt for each app to tell its preferences, but
for testing or defining something other than CCID2 as the default for apps that
don't explicitely set their preference the sysctl interface is handy.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-20 19:25:02 -08:00
..
ccids [DCCP]: Kconfig tidy up 2006-03-20 19:24:22 -08:00
ackvec.c [DCCP] ackvec: Delete all the ack vector records in dccp_ackvec_free 2006-03-20 17:20:46 -08:00
ackvec.h [DCCP] ackvec: Introduce ack vector records 2006-03-20 17:19:55 -08:00
ccid.c [DCCP] CCID: Improve CCID infrastructure 2006-03-20 19:21:44 -08:00
ccid.h [DCCP] CCID: Improve CCID infrastructure 2006-03-20 19:21:44 -08:00
dccp.h [DCCP] feat: Introduce sysctls for the default features 2006-03-20 19:25:02 -08:00
diag.c [IP_SOCKGLUE]: Remove most of the tcp specific calls 2006-01-03 13:10:58 -08:00
feat.c [DCCP] feat: Actually change the CCID upon negotiation 2006-03-20 19:22:37 -08:00
feat.h [DCCP]: Initial feature negotiation implementation 2006-03-20 17:43:56 -08:00
input.c [DCCP] CCID: Improve CCID infrastructure 2006-03-20 19:21:44 -08:00
ipv4.c [DCCP]: Call dccp_feat_init more early in dccp_v4_init_sock 2006-03-20 19:24:41 -08:00
ipv6.c [DCCP]: sparse endianness annotations 2006-03-20 19:23:32 -08:00
ipv6.h [DCCP]: Introduce DCCPv6 2006-01-03 13:10:52 -08:00
Kconfig [DCCP] CCID2: Initial CCID2 (TCP-Like) implementation 2006-03-20 17:41:47 -08:00
Makefile [DCCP] feat: Introduce sysctls for the default features 2006-03-20 19:25:02 -08:00
minisocks.c [DCCP] CCID: Improve CCID infrastructure 2006-03-20 19:21:44 -08:00
options.c [DCCP] feat: Introduce sysctls for the default features 2006-03-20 19:25:02 -08:00
output.c [DCCP]: Initial feature negotiation implementation 2006-03-20 17:43:56 -08:00
proto.c [DCCP] feat: Introduce sysctls for the default features 2006-03-20 19:25:02 -08:00
sysctl.c [DCCP] feat: Introduce sysctls for the default features 2006-03-20 19:25:02 -08:00
timer.c [DCCP]: Initial feature negotiation implementation 2006-03-20 17:43:56 -08:00