sctp: use common head of addr parameter to access member in addr-unrelated code
authorShan Wei <shanwei@cn.fujitsu.com>
Mon, 18 Apr 2011 19:11:47 +0000 (19:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 04:45:19 +0000 (21:45 -0700)
commit6a435732accd9e3f4a8d9c320fabe578b1bf5add
tree35492d5afc59dabb41361c5a6dec015b89303fe6
parent33c7cfdbb0d2bc021979e4947c7030c30d572532
sctp: use common head of addr parameter to access member in addr-unrelated code

The 'p' member of struct sctp_paramhdr is common part for
IPv4 addr parameter and IPv6 addr parameter in union sctp_addr_param.

For addr-related code, use specified addr parameter.
Otherwise, use common header to access type/length member.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c
net/sctp/sm_make_chunk.c