Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279127
b: refs/heads/master
c: 346f870
h: refs/heads/master
i:
  279125: 33fba3a
  279123: b29e2cb
  279119: 5b9661e
v: v3
  • Loading branch information
David S. Miller committed Dec 29, 2011
1 parent d5c918d commit cbaf2f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95f56e7aa807e9eec241a5b70f0695b2514b5ad5
refs/heads/master: 346f870b8a9aaf0847f7c7cffdbb447bb2f3853e
11 changes: 10 additions & 1 deletion trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2360,11 +2360,13 @@ static int rt6_fill_node(struct net *net,
int iif, int type, u32 pid, u32 seq,
int prefix, int nowait, unsigned int flags)
{
const struct inet_peer *peer;
struct rtmsg *rtm;
struct nlmsghdr *nlh;
long expires;
u32 table;
struct neighbour *n;
u32 ts, tsage;

if (prefix) { /* user wants prefix routes only */
if (!(rt->rt6i_flags & RTF_PREFIX_RT)) {
Expand Down Expand Up @@ -2471,7 +2473,14 @@ static int rt6_fill_node(struct net *net,
else
expires = INT_MAX;

if (rtnl_put_cacheinfo(skb, &rt->dst, 0, 0, 0,
peer = rt->rt6i_peer;
ts = tsage = 0;
if (peer && peer->tcp_ts_stamp) {
ts = peer->tcp_ts;
tsage = get_seconds() - peer->tcp_ts_stamp;
}

if (rtnl_put_cacheinfo(skb, &rt->dst, 0, ts, tsage,
expires, rt->dst.error) < 0)
goto nla_put_failure;

Expand Down

0 comments on commit cbaf2f6

Please sign in to comment.