<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/dccp/options.c, branch linux-2.6.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-08-27T02:01:30Z</updated>
<entry>
<title>[DCCP]: Update contact details and copyright</title>
<updated>2006-08-27T02:01:30Z</updated>
<author>
<name>Ian McDonald</name>
</author>
<published>2006-08-27T02:01:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6bccd357343e98db9e1fd0d487f4f924e1a7921'/>
<id>urn:sha1:e6bccd357343e98db9e1fd0d487f4f924e1a7921</id>
<content type='text'>
Just updating copyright and contacts

Signed off by: Ian McDonald &lt;ian.mcdonald@jandi.co.nz&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Fix default sequence window size</title>
<updated>2006-07-24T19:44:21Z</updated>
<author>
<name>Ian McDonald</name>
</author>
<published>2006-07-24T06:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b79f0af48d529a360d3529def01835dc5d45fe1'/>
<id>urn:sha1:4b79f0af48d529a360d3529def01835dc5d45fe1</id>
<content type='text'>
When using the default sequence window size (100) I got the following in
my logs:

Jun 22 14:24:09 localhost kernel: [ 1492.114775] DCCP: Step 6 failed for
DATA packet, (LSWL(6279674225) &lt;= P.seqno(6279674749) &lt;=
S.SWH(6279674324)) and (P.ackno doesn't exist or LAWL(18798206530) &lt;=
P.ackno(1125899906842620) &lt;= S.AWH(18798206548), sending SYNC...
Jun 22 14:24:09 localhost kernel: [ 1492.115147] DCCP: Step 6 failed for
DATA packet, (LSWL(6279674225) &lt;= P.seqno(6279674750) &lt;=
S.SWH(6279674324)) and (P.ackno doesn't exist or LAWL(18798206530) &lt;=
P.ackno(1125899906842620) &lt;= S.AWH(18798206549), sending SYNC...

I went to alter the default sysctl and it didn't take for new sockets.
Below patch fixes this.

I think the default is too low but it is what the DCCP spec specifies.

As a side effect of this my rx speed using iperf goes from about 2.8 Mbits/sec
to 3.5. This is still far too slow but it is a step in the right direction.

Compile tested only for IPv6 but not particularly complex change.

Signed off by: Ian McDonald &lt;ian.mcdonald@jandi.co.nz&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Remove obsolete #include &lt;linux/config.h&gt;</title>
<updated>2006-06-30T17:25:36Z</updated>
<author>
<name>Jörn Engel</name>
</author>
<published>2006-06-30T17:25:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ab3d5624e172c553004ecc862bfeac16d9d68b7'/>
<id>urn:sha1:6ab3d5624e172c553004ecc862bfeac16d9d68b7</id>
<content type='text'>
Signed-off-by: Jörn Engel &lt;joern@wohnheim.fh-wedel.de&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
<entry>
<title>[DCCP] minisock: Rename struct dccp_options to struct dccp_minisock</title>
<updated>2006-03-21T06:50:58Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T06:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4bf3902427a128455b8de299ff0918072b2e974'/>
<id>urn:sha1:a4bf3902427a128455b8de299ff0918072b2e974</id>
<content type='text'>
This will later be included in struct dccp_request_sock so that we can
have per connection feature negotiation state while in the 3way
handshake, when we clone the DCCP_ROLE_LISTEN socket (in
dccp_create_openreq_child) we'll just copy this state from
dreq_minisock to dccps_minisock.

Also the feature negotiation and option parsing code will mostly touch
dccps_minisock, which will simplify some stuff.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Fix uninitialized var warnings in dccp_parse_options().</title>
<updated>2006-03-21T06:36:01Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2006-03-21T06:36:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb9504964d32f69e4381dc8895eeb8e81a32af72'/>
<id>urn:sha1:fb9504964d32f69e4381dc8895eeb8e81a32af72</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP] options: Make dccp_insert_options &amp; friends yell on error</title>
<updated>2006-03-21T06:32:06Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T06:32:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d0817d11eaec57435feb61493331a763f732a2b'/>
<id>urn:sha1:2d0817d11eaec57435feb61493331a763f732a2b</id>
<content type='text'>
And not the silly LIMIT_NETDEBUG and silently return without inserting
the option requested.

Also drop some old debugging messages associated to option insertion.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP] options: Fix handling of ackvecs in DATA packets</title>
<updated>2006-03-21T06:30:51Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T06:30:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e5a6de915ba9ba828751ade5d3e874072a89a00a'/>
<id>urn:sha1:e5a6de915ba9ba828751ade5d3e874072a89a00a</id>
<content type='text'>
I.e. they should be just ignored, but we have to use 'break', not 'continue',
as we have to possibly reset the mandatory flag.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP] options: Fix some aspects of mandatory option processing</title>
<updated>2006-03-21T06:06:02Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T06:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6df9424a9ca35f9fab773d1a0a8919781a367125'/>
<id>urn:sha1:6df9424a9ca35f9fab773d1a0a8919781a367125</id>
<content type='text'>
According to dccp draft (draft-ietf-dccp-spec-13.txt) section 5.8.2
(Mandatory Option) the following patch correct the handling of the
following cases:

1) "... and any Mandatory options received on DCCP-Data packets MUST be
  ignored."

2) "The connection is in error and should be reset with Reset Code 5, ...
  if option O is absent (Mandatory was the last byte of the option list), or
  if option O equals Mandatory."

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: Hagen Paul Pfeifer &lt;hagen@jauu.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Move the IPv4 specific bits from proto.c to ipv4.c</title>
<updated>2006-03-21T05:25:11Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T05:25:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b61fafc4ef3faf54236d57e3b230ca19167663bf'/>
<id>urn:sha1:b61fafc4ef3faf54236d57e3b230ca19167663bf</id>
<content type='text'>
With this patch in place we can break down the complexity by better
compartmentalizing the code that is common to ipv6 and ipv4.

Now we have these modules:
Module                  Size  Used by
dccp_diag               1344  0
inet_diag               9448  1 dccp_diag
dccp_ccid3             15856  0
dccp_tfrc_lib          12320  1 dccp_ccid3
dccp_ccid2              5764  0
dccp_ipv4              16996  2
dccp                   48208  4 dccp_diag,dccp_ccid3,dccp_ccid2,dccp_ipv4

dccp_ipv6 still requires dccp_ipv4 due to dccp_ipv6_mapped, that is
the next target to work on the "hey, ipv4 is legacy, I only want ipv6
dude!" direction.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP] feat: Introduce sysctls for the default features</title>
<updated>2006-03-21T03:25:02Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
</author>
<published>2006-03-21T03:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e55d912f5b75723159348a7fc7692f869a86636a'/>
<id>urn:sha1:e55d912f5b75723159348a7fc7692f869a86636a</id>
<content type='text'>
[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 &gt; /proc/sys/net/dccp/default/tx_ccid
[root@qemu ~]# echo 2 &gt; /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 &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
