aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/options.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2007-08-19 20:19:21 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:17 -0400
commit8fb8354af9b92ce3bd41083995f1fe26024d0959 (patch)
tree62d1920b5ed158e28d96691637d82a2a4fd58dc5 /net/dccp/options.c
parent234748954a9880cce8a065698dcbf692f9c23918 (diff)
[DCCP]: Nuke dccp_timestamp and dccps_epoch, not used anymore
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r--net/dccp/options.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c
index 439e25daa963..167415677a75 100644
--- a/net/dccp/options.c
+++ b/net/dccp/options.c
@@ -370,22 +370,6 @@ int dccp_insert_option_elapsed_time(struct sock *sk, struct sk_buff *skb,
370 370
371EXPORT_SYMBOL_GPL(dccp_insert_option_elapsed_time); 371EXPORT_SYMBOL_GPL(dccp_insert_option_elapsed_time);
372 372
373void dccp_timestamp(const struct sock *sk, struct timeval *tv)
374{
375 const struct dccp_sock *dp = dccp_sk(sk);
376
377 do_gettimeofday(tv);
378 tv->tv_sec -= dp->dccps_epoch.tv_sec;
379 tv->tv_usec -= dp->dccps_epoch.tv_usec;
380
381 while (tv->tv_usec < 0) {
382 tv->tv_sec--;
383 tv->tv_usec += USEC_PER_SEC;
384 }
385}
386
387EXPORT_SYMBOL_GPL(dccp_timestamp);
388
389int dccp_insert_option_timestamp(struct sock *sk, struct sk_buff *skb) 373int dccp_insert_option_timestamp(struct sock *sk, struct sk_buff *skb)
390{ 374{
391 __be32 now = htonl(((suseconds_t)ktime_to_us(ktime_get_real())) / 10); 375 __be32 now = htonl(((suseconds_t)ktime_to_us(ktime_get_real())) / 10);