aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_statefuns.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-09-30 13:26:39 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-05 03:16:47 -0700
commit3dd7669f1f13772d0a846dee58379399f163729c (patch)
tree3404c02718e7fcbb04a6c1594bbeede886a8d8d5 /net/sctp/sm_statefuns.c
parentnfnetlink: use y2038 safe timestamp (diff)
downloadlinux-dev-3dd7669f1f13772d0a846dee58379399f163729c.tar.xz
linux-dev-3dd7669f1f13772d0a846dee58379399f163729c.zip
ipv6: use ktime_t for internal timestamps
The ipv6 mip6 implementation is one of only a few users of the skb_get_timestamp() function in the kernel, which is both unsafe on 32-bit architectures because of the 2038 overflow, and slightly less efficient than the skb_get_ktime() based approach. This converts the function call and the mip6_report_rate_limiter structure that stores the time stamp, eliminating all uses of timeval in the ipv6 code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: James Morris <jmorris@namei.org> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Cc: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
0 files changed, 0 insertions, 0 deletions