aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r--net/ipv4/igmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 6699f23e6f55..0b5580c69f2d 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2435,6 +2435,8 @@ static int igmp_mc_seq_show(struct seq_file *seq, void *v)
2435 struct ip_mc_list *im = (struct ip_mc_list *)v; 2435 struct ip_mc_list *im = (struct ip_mc_list *)v;
2436 struct igmp_mc_iter_state *state = igmp_mc_seq_private(seq); 2436 struct igmp_mc_iter_state *state = igmp_mc_seq_private(seq);
2437 char *querier; 2437 char *querier;
2438 long delta;
2439
2438#ifdef CONFIG_IP_MULTICAST 2440#ifdef CONFIG_IP_MULTICAST
2439 querier = IGMP_V1_SEEN(state->in_dev) ? "V1" : 2441 querier = IGMP_V1_SEEN(state->in_dev) ? "V1" :
2440 IGMP_V2_SEEN(state->in_dev) ? "V2" : 2442 IGMP_V2_SEEN(state->in_dev) ? "V2" :
@@ -2448,11 +2450,12 @@ static int igmp_mc_seq_show(struct seq_file *seq, void *v)
2448 state->dev->ifindex, state->dev->name, state->in_dev->mc_count, querier); 2450 state->dev->ifindex, state->dev->name, state->in_dev->mc_count, querier);
2449 } 2451 }
2450 2452
2453 delta = im->timer.expires - jiffies;
2451 seq_printf(seq, 2454 seq_printf(seq,
2452 "\t\t\t\t%08X %5d %d:%08lX\t\t%d\n", 2455 "\t\t\t\t%08X %5d %d:%08lX\t\t%d\n",
2453 im->multiaddr, im->users, 2456 im->multiaddr, im->users,
2454 im->tm_running, im->tm_running ? 2457 im->tm_running,
2455 jiffies_to_clock_t(im->timer.expires-jiffies) : 0, 2458 im->tm_running ? jiffies_delta_to_clock_t(delta) : 0,
2456 im->reporter); 2459 im->reporter);
2457 } 2460 }
2458 return 0; 2461 return 0;