diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2006-09-29 17:10:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-09-29 17:10:03 -0700 |
commit | f236218b7292bccb0f8754a0feb5d9e9a06fe5a2 (patch) | |
tree | 3d787eac398a370504d3dd051437dd33099b9d89 /net/sctp/input.c | |
parent | b56bab46f3220eb6b1f71c000faa44c6b13fb148 (diff) | |
download | linux-f236218b7292bccb0f8754a0feb5d9e9a06fe5a2.tar.gz linux-f236218b7292bccb0f8754a0feb5d9e9a06fe5a2.tar.bz2 linux-f236218b7292bccb0f8754a0feb5d9e9a06fe5a2.zip |
[SCTP]: Do not timestamp every SCTP packet.
We only need the timestamp on COOKIE-ECHO chunks, so instead of always
timestamping every SCTP packet, let common code timestamp if the socket
option is set. For COOKIE-ECHO, simply get the time of day if we don't
have a timestamp. This introduces a small possibility that the cookie
may be considered expired, but it will be renegotiated.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 4714882ada96..64f630102532 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c @@ -218,12 +218,6 @@ int sctp_rcv(struct sk_buff *skb) } } - /* SCTP seems to always need a timestamp right now (FIXME) */ - if (skb->tstamp.off_sec == 0) { - __net_timestamp(skb); - sock_enable_timestamp(sk); - } - if (!xfrm_policy_check(sk, XFRM_POLICY_IN, skb, family)) goto discard_release; nf_reset(skb); |