Commit f534e7fc authored by Sridhar Samudrala's avatar Sridhar Samudrala

[SCTP] draft 07 API changes: By default, all the event notifications

are turned off even for one-to-many style sockets.
parent 16321c0b
...@@ -2107,15 +2107,10 @@ SCTP_STATIC int sctp_init_sock(struct sock *sk) ...@@ -2107,15 +2107,10 @@ SCTP_STATIC int sctp_init_sock(struct sock *sk)
sp->assocparams.sasoc_cookie_life = (sctp_valid_cookie_life / HZ) sp->assocparams.sasoc_cookie_life = (sctp_valid_cookie_life / HZ)
* 1000; * 1000;
/* Initialize default event subscriptions. /* Initialize default event subscriptions. By default, all the
* the struct sock is initialized to zero, so only * options are off.
* enable the events needed. By default, UDP-style
* sockets enable io and association change notifications.
*/ */
if (sctp_style(sk, UDP)) { memset(&sp->subscribe, 0, sizeof(struct sctp_event_subscribe));
sp->subscribe.sctp_data_io_event = 1;
sp->subscribe.sctp_association_event = 1;
}
/* Default Peer Address Parameters. These defaults can /* Default Peer Address Parameters. These defaults can
* be modified via SCTP_PEER_ADDR_PARAMS * be modified via SCTP_PEER_ADDR_PARAMS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment