OSDN Git Service

sctp: add asconf_enable in struct sctp_endpoint
authorXin Long <lucien.xin@gmail.com>
Mon, 19 Aug 2019 14:02:43 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:27:28 +0000 (18:27 -0700)
commit4e27428fb5626f966aa961b1aad8751f2ebeef72
treefd1e02768a723e6e7dbf97e289b6afceb9181223
parentaf809709e9df2a44137429ba3694c339a11b710d
sctp: add asconf_enable in struct sctp_endpoint

This patch is to make addip/asconf flag per endpoint,
and its value is initialized by the per netns flag,
net->sctp.addip_enable.

It also replaces the checks of net->sctp.addip_enable
with ep->asconf_enable in some places.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/endpointola.c
net/sctp/sm_make_chunk.c
net/sctp/socket.c