]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: sctp_verify_init: clean up mandatory checks and add comment
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 27 Aug 2013 14:53:52 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 19:54:48 +0000 (15:54 -0400)
commit7051ff55b0cfcaafa992b3d9857c3b9ceccb8c61
treeac0ce10bdf7be547964abc25a91be61e82e36f35
parent6249207108ef59a0b36e5dc972fc2d29896c77e8
net: sctp: sctp_verify_init: clean up mandatory checks and add comment

Add a comment related to RFC4960 explaning why we do not check for initial
TSN, and while at it, remove yoda notation checks and clean up code from
checks of mandatory conditions. That's probably just really minor, but makes
reviewing easier.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c