]> git.baikalelectronics.ru Git - kernel.git/commit
[DCCP]: Combine allocating & zeroing header space on skb
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Fri, 10 Nov 2006 13:22:32 +0000 (11:22 -0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:55 +0000 (21:21 -0800)
commit580ae7a8bfd448514e5c70af63b8765bd17389ac
treed3d20e17aa85e1bb16b99397f98f151d197b3177
parent5ed95d9b23ea19f8d230c9ac065165f8398cecc0
[DCCP]: Combine allocating & zeroing header space on skb

This is a code simplification:
it combines three often recurring operations into one inline function,

        * allocate `len' bytes header space in skb
        * fill these `len' bytes with zeroes
        * cast the start of this header space as dccp_hdr

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
include/linux/dccp.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/output.c