]> bbs.cooldavid.org Git - net-next-2.6.git/commit
dccp: Integrate feature-negotiation insertion code
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 2 Dec 2008 07:29:30 +0000 (23:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Dec 2008 07:29:30 +0000 (23:29 -0800)
commit8b7b6c75c6387527b195bb69100182288da94f84
tree4a87cbdcacf5736c41eae01481c31c2729bea1a6
parent0971d17ca3d80f61863f4750091a64448bf91600
dccp: Integrate feature-negotiation insertion code

The patch implements insertion of feature negotiation at the server (listening
and request socket) and the client (connecting socket).

In dccp_insert_options(), several statements have been grouped together now
to achieve (it is hoped) better efficiency by reducing the number of tests
each packet has to go through:
 - Ack Vectors are sent if the packet is neither a Data or a Request packet;
 - a previous issue is corrected - feature negotiation options are allowed
   on DataAck packets (5.8).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/options.c