summaryrefslogtreecommitdiff
path: root/net/sctp/transport.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2012-05-04 05:24:54 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-10 23:15:47 -0400
commite0268868ba064980488fc8c194db3d8e9fb2959c (patch)
tree7b8bfb4cceb0a5d184a2fe651aab5aec59a216d3 /net/sctp/transport.c
parentc57b54684060c8aced64a5b78ff69ff289af97b9 (diff)
downloadlinux-3.10-e0268868ba064980488fc8c194db3d8e9fb2959c.tar.gz
linux-3.10-e0268868ba064980488fc8c194db3d8e9fb2959c.tar.bz2
linux-3.10-e0268868ba064980488fc8c194db3d8e9fb2959c.zip
sctp: check cached dst before using it
dst_check() will take care of SA (and obsolete field), hence IPsec rekeying scenario is taken into account. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Vlad Yaseivch <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r--net/sctp/transport.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index 3889330b7b0..b026ba0c699 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -226,23 +226,6 @@ void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk)
transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT;
}
-/* this is a complete rip-off from __sk_dst_check
- * the cookie is always 0 since this is how it's used in the
- * pmtu code
- */
-static struct dst_entry *sctp_transport_dst_check(struct sctp_transport *t)
-{
- struct dst_entry *dst = t->dst;
-
- if (dst && dst->obsolete && dst->ops->check(dst, 0) == NULL) {
- dst_release(t->dst);
- t->dst = NULL;
- return NULL;
- }
-
- return dst;
-}
-
void sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu)
{
struct dst_entry *dst;