Re: [PATCH] ipv4: do not cache local route when using SO_BINDTODEVICE

2016-02-25 Thread Kouya Shimura
Thanks for reviewing. David Miller writes: > From: Kouya Shimura > Date: Tue, 23 Feb 2016 14:27:32 +0900 > >> After v3.6, output routes are cached, however, the 'rt_iif' field of >> struct rtable can not be shared by various traffics using SO_BINDTODEVICE. &g

[PATCH] ipv4: do not cache local route when using SO_BINDTODEVICE

2016-02-22 Thread Kouya Shimura
cs always reached. It seems to be a regression. Actually the 'dhcp_release' command relies on it. Commit 7bd86cc282a458b66c41e3f6 ("ipv4: Cache local output routes") originated this issue. Revert it conditionally. Signed-off-by: Kouya Shimura --- net/ipv4/route.c | 2 ++ 1

ipv4: ip unreachable with SO_BINDTODEVICE socket

2015-11-10 Thread Kouya Shimura
count in range(10): time.sleep(1) connect_and_send("count=%d" % count) print(("sent:count=%s" % count)) # revive the connection. flush_rt_cache() # now, successfully connect to the server. connect_and_send('finish') server.j