]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sctp/endpointola.c
[SCTP]: Include ulpevents in socket receive buffer accounting.
[linux-2.6-omap-h63xx.git] / net / sctp / endpointola.c
index 0df76897f563167cae76cbb8a5355ba8f5dbaa13..67bd53070ee0b31d0babb2221ccd57e03f81124b 100644 (file)
@@ -104,6 +104,9 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
        sk->sk_write_space = sctp_write_space;
        sock_set_flag(sk, SOCK_USE_WRITE_QUEUE);
 
+       /* Get the receive buffer policy for this endpoint */
+       ep->rcvbuf_policy = sctp_rcvbuf_policy;
+
        /* Initialize the secret key used with cookie. */
        get_random_bytes(&ep->secret_key[0], SCTP_SECRET_SIZE);
        ep->last_key = ep->current_key = 0;