]> git.hungrycats.org Git - linux/commitdiff
[IPV6]: Catch up SCTP to inet6_protocol changes.
authorJon Grimm <jgrimm2@us.ibm.com>
Mon, 14 Apr 2003 09:00:35 +0000 (02:00 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Mon, 14 Apr 2003 09:00:35 +0000 (02:00 -0700)
net/sctp/ipv6.c

index 07fe1eafe38c115ac1f113397d50f30d4f913b16..7e5ab6c9342d59e64272012bc1a671d49b1b54c1 100644 (file)
@@ -776,18 +776,18 @@ static struct inet_protosw sctpv6_stream_protosw = {
        .ops           = &inet6_seqpacket_ops,
        .capability    = -1,
        .no_check      = 0,
-       .flags         = SCTP_PROTOSW_FLAG
+       .flags         = SCTP_PROTOSW_FLAG,
 };
 
-static int sctp6_rcv(struct sk_buff **pskb)
+static int sctp6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)
 {
-       return sctp_rcv(*pskb);
+       return sctp_rcv(*pskb) ? -1 : 0;
 }
 
 static struct inet6_protocol sctpv6_protocol = {
        .handler      = sctp6_rcv,
        .err_handler  = sctp_v6_err,
-       .no_policy    = 1,
+       .flags        = INET6_PROTO_NOPOLICY | INET6_PROTO_FINAL,
 };
 
 static struct sctp_af sctp_ipv6_specific = {