inet_diag.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) inet_diag.c (62ad6fcd743792bf294f2a7ba26ab8f462065150)
1/*
2 * inet_diag.c Module for monitoring INET transport protocols sockets.
3 *
4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 127 unchanged lines hidden (view full) ---

136 minfo->idiag_tmem = sk_wmem_alloc_get(sk);
137 }
138
139 if (ext & (1 << (INET_DIAG_SKMEMINFO - 1)))
140 if (sock_diag_put_meminfo(sk, skb, INET_DIAG_SKMEMINFO))
141 goto rtattr_failure;
142
143 if (icsk == NULL) {
1/*
2 * inet_diag.c Module for monitoring INET transport protocols sockets.
3 *
4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 127 unchanged lines hidden (view full) ---

136 minfo->idiag_tmem = sk_wmem_alloc_get(sk);
137 }
138
139 if (ext & (1 << (INET_DIAG_SKMEMINFO - 1)))
140 if (sock_diag_put_meminfo(sk, skb, INET_DIAG_SKMEMINFO))
141 goto rtattr_failure;
142
143 if (icsk == NULL) {
144 r->idiag_rqueue = r->idiag_wqueue = 0;
144 handler->idiag_get_info(sk, r, NULL);
145 goto out;
146 }
147
148#define EXPIRES_IN_MS(tmo) DIV_ROUND_UP((tmo - jiffies) * 1000, HZ)
149
150 if (icsk->icsk_pending == ICSK_TIME_RETRANS) {
151 r->idiag_timer = 1;
152 r->idiag_retrans = icsk->icsk_retransmits;

--- 934 unchanged lines hidden ---
145 goto out;
146 }
147
148#define EXPIRES_IN_MS(tmo) DIV_ROUND_UP((tmo - jiffies) * 1000, HZ)
149
150 if (icsk->icsk_pending == ICSK_TIME_RETRANS) {
151 r->idiag_timer = 1;
152 r->idiag_retrans = icsk->icsk_retransmits;

--- 934 unchanged lines hidden ---