aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-20 22:25:02 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-20 22:25:02 -0500
commite55d912f5b75723159348a7fc7692f869a86636a (patch)
treec00be180cac20e4247ffda446ad266d885a1a811 /include
parent04e2661e9c00386412b64612549cf24c8baef67c (diff)
[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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sysctl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index b686548f32e0..dfcf449afc7c 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -211,6 +211,7 @@ enum
211 NET_SCTP=17, 211 NET_SCTP=17,
212 NET_LLC=18, 212 NET_LLC=18,
213 NET_NETFILTER=19, 213 NET_NETFILTER=19,
214 NET_DCCP=20,
214}; 215};
215 216
216/* /proc/sys/kernel/random */ 217/* /proc/sys/kernel/random */
@@ -571,6 +572,21 @@ enum {
571 __NET_NEIGH_MAX 572 __NET_NEIGH_MAX
572}; 573};
573 574
575/* /proc/sys/net/dccp */
576enum {
577 NET_DCCP_DEFAULT=1,
578};
579
580/* /proc/sys/net/dccp/default */
581enum {
582 NET_DCCP_DEFAULT_SEQ_WINDOW = 1,
583 NET_DCCP_DEFAULT_RX_CCID = 2,
584 NET_DCCP_DEFAULT_TX_CCID = 3,
585 NET_DCCP_DEFAULT_ACK_RATIO = 4,
586 NET_DCCP_DEFAULT_SEND_ACKVEC = 5,
587 NET_DCCP_DEFAULT_SEND_NDP = 6,
588};
589
574/* /proc/sys/net/ipx */ 590/* /proc/sys/net/ipx */
575enum { 591enum {
576 NET_IPX_PPROP_BROADCASTING=1, 592 NET_IPX_PPROP_BROADCASTING=1,