diff options
author | Colin Cross <ccross@android.com> | 2012-05-14 16:41:02 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-05-14 16:41:02 -0700 |
commit | ec0b571c19ac62ab0bb80d373a3d4922a48b4b75 (patch) | |
tree | 10c597f5227c969c3f2b909fbeb29725a0c5c6e8 /include/net | |
parent | 7bb8b65407a519d3a90dd8cecdd1ccd10ee0c6cc (diff) | |
parent | 36be50515fe2aef61533b516fa2576a2c7fe7664 (diff) |
Merge commit 'v3.4-rc7' into android-3.4
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/sctp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 6ee44b24864..a2ef81466b0 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -704,4 +704,17 @@ static inline void sctp_v4_map_v6(union sctp_addr *addr) addr->v6.sin6_addr.s6_addr32[2] = htonl(0x0000ffff); } +/* The cookie is always 0 since this is how it's used in the + * pmtu code. + */ +static inline struct dst_entry *sctp_transport_dst_check(struct sctp_transport *t) +{ + if (t->dst && !dst_check(t->dst, 0)) { + dst_release(t->dst); + t->dst = NULL; + } + + return t->dst; +} + #endif /* __net_sctp_h__ */ |