From 4f5b0080caa721bc1841b7769a9e78745dbf8049 Mon Sep 17 00:00:00 2001 From: "David S. Miller" <davem@nuts.ninka.net> Date: Wed, 23 Oct 2002 12:04:13 -0700 Subject: [PATCH] [IPV4]: When advmss of route is zero, report it as zero not 40. --- net/ipv4/route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 4b3b1aba12e5..f43413dabdbb 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -248,7 +248,8 @@ static int rt_cache_get_info(char *buffer, char **start, off_t offset, r->u.dst.__use, 0, (unsigned long)r->rt_src, - (int)r->u.dst.advmss + 40, + (r->u.dst.advmss ? + (int) r->u.dst.advmss + 40 : 0), r->u.dst.window, (int)((r->u.dst.rtt >> 3) + r->u.dst.rttvar), r->fl.fl4_tos, -- 2.30.9