Re: [PATCH] [IPROUTE]: A workaround to make larger rto_min printed correctly

2007-12-21 Thread Satoru SATOH
I agree. I mistakenly thought hz in that context must be larger than 1000.. As it's uncertain, your's looks much simpler and better. (btw, the lines "else div = 1" is not needed, is it?) Thanks, Satoru SATOH 2007/12/21, YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]&g

Re: [PATCH] [IPROUTE]: A workaround to make larger rto_min printed correctly

2007-12-20 Thread Satoru SATOH
ittle bit will make it look safer! > > Jarek P. OK, how about this? Signed-off-by: Satoru SATOH <[EMAIL PROTECTED]> ip/iproute.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ip/iproute.c b/ip/iproute.c index f4200ae..c771b34 100644 --- a

Re: [PATCH] [IPROUTE]: A workaround to make larger rto_min printed correctly

2007-12-20 Thread Satoru SATOH
if (i == RTAX_RTT) (gdb) p val $4 = 1385447424 (gdb) c Continuing. 192.168.140.0/24 scope link rto_min lock 1ms Program exited normally. (gdb) Thanks, Satoru SATOH 2007/12/20, Jarek Poplawski <[EMAIL PROTECTED]>: > On 20-12-2007 04:31, Satoru SATOH wrote: > > "ip route s

[PATCH] [IPROUTE]: A workaround to make larger rto_min printed correctly

2007-12-19 Thread Satoru SATOH
]# ./iproute2.git/ip/ip route show dev eth1 # patched version 192.168.140.0/24 scope link rto_min lock 3000ms <-- correct 169.254.0.0/16 scope link [root test]# Signed-off-by: Satoru SATOH <[EMAIL PROTECTED]> ip/iproute.c |8 1 files changed, 4 insertions(+), 4 deletio

[PATCH] [IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min()

2007-12-14 Thread Satoru SATOH
tcp_input_metrics() refers to the built-time constant TCP_RTO_MIN regardless of configured minimum RTO with iproute2. The following fixes that. Signed-off-by: Satoru SATOH <[EMAIL PROTECTED]> net/ipv4/tcp_input.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] [IPROUTE]: Avoid overflow for larger rto_min in print_route

2007-12-12 Thread Satoru SATOH
This includes a workaround for overflow while conversion of larger rto_min (e.g. 3s) unit. Signed-off-by: Satoru SATOH <[EMAIL PROTECTED]> ip/iproute.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ip/iproute.c b/ip/iproute.c index f4200ae..fa722c6