aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_metrics.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r--net/ipv4/tcp_metrics.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c
index 7b7eec439906..b617826e2477 100644
--- a/net/ipv4/tcp_metrics.c
+++ b/net/ipv4/tcp_metrics.c
@@ -800,7 +800,8 @@ static int tcp_metrics_fill_info(struct sk_buff *msg,
800 } 800 }
801 801
802 if (nla_put_msecs(msg, TCP_METRICS_ATTR_AGE, 802 if (nla_put_msecs(msg, TCP_METRICS_ATTR_AGE,
803 jiffies - tm->tcpm_stamp) < 0) 803 jiffies - tm->tcpm_stamp,
804 TCP_METRICS_ATTR_PAD) < 0)
804 goto nla_put_failure; 805 goto nla_put_failure;
805 if (tm->tcpm_ts_stamp) { 806 if (tm->tcpm_ts_stamp) {
806 if (nla_put_s32(msg, TCP_METRICS_ATTR_TW_TS_STAMP, 807 if (nla_put_s32(msg, TCP_METRICS_ATTR_TW_TS_STAMP,
@@ -864,7 +865,8 @@ static int tcp_metrics_fill_info(struct sk_buff *msg,
864 (nla_put_u16(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROPS, 865 (nla_put_u16(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROPS,
865 tfom->syn_loss) < 0 || 866 tfom->syn_loss) < 0 ||
866 nla_put_msecs(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS, 867 nla_put_msecs(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS,
867 jiffies - tfom->last_syn_loss) < 0)) 868 jiffies - tfom->last_syn_loss,
869 TCP_METRICS_ATTR_PAD) < 0))
868 goto nla_put_failure; 870 goto nla_put_failure;
869 if (tfom->cookie.len > 0 && 871 if (tfom->cookie.len > 0 &&
870 nla_put(msg, TCP_METRICS_ATTR_FOPEN_COOKIE, 872 nla_put(msg, TCP_METRICS_ATTR_FOPEN_COOKIE,