Re: 答复: [PATCH] net: Fix the arp error in some cases

2020-06-17 Thread David Ahern
On 6/16/20 9:38 PM, Guodeqing (A) wrote: > rt_set_nexthop in __mkroute_output will check the nh->nh_scope value to > determine whether to use the gw or not. > if (nh->nh_gw && nh->nh_scope == RT_SCOPE_LINK) { > rt->rt_gateway = nh->nh_gw; >

答复: [PATCH] net: Fix the arp error in some cases

2020-06-16 Thread Guodeqing (A)
nr.ac.ru; netdev@vger.kernel.org; d...@cumulusnetworks.com; k...@kernel.org 主题: Re: [PATCH] net: Fix the arp error in some cases On 6/16/20 8:07 PM, guodeqing wrote: > ie., > $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 > > $ ip rule add from 6.6.6.6 table > > $ ip route add 9.9.

Re: [PATCH] net: Fix the arp error in some cases

2020-06-16 Thread David Ahern
On 6/16/20 8:07 PM, guodeqing wrote: > ie., > $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 > > $ ip rule add from 6.6.6.6 table > > $ ip route add 9.9.9.9 via 6.6.6.6 > > $ ping -I 6.6.6.6 9.9.9.9 > PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. > > 3 packets transmitted, 0 r

[PATCH] net: Fix the arp error in some cases

2020-06-16 Thread guodeqing
ie., $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 $ ip rule add from 6.6.6.6 table $ ip route add 9.9.9.9 via 6.6.6.6 $ ping -I 6.6.6.6 9.9.9.9 PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. 3 packets transmitted, 0 received, 100% packet loss, time 2079ms $ arp Address H

Re: [PATCH] net: Fix the arp error in some cases

2020-06-15 Thread David Miller
From: guodeqing Date: Tue, 16 Jun 2020 09:00:50 +0800 > ie., > $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 > > $ ip rule add from 6.6.6.6 table > > $ ip route add 9.9.9.9 via 6.6.6.6 > > $ ping -I 6.6.6.6 9.9.9.9 > PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. > > 3 packe

[PATCH] net: Fix the arp error in some cases

2020-06-15 Thread guodeqing
ie., $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 $ ip rule add from 6.6.6.6 table $ ip route add 9.9.9.9 via 6.6.6.6 $ ping -I 6.6.6.6 9.9.9.9 PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. 3 packets transmitted, 0 received, 100% packet loss, time 2079ms $ arp Address H

Re: [PATCH] net: Fix the arp error in some cases

2020-06-15 Thread Jakub Kicinski
On Sat, 13 Jun 2020 14:49:55 +0800 guodeqing wrote: > ie., > $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 > > $ ip rule add from 6.6.6.6 table > > $ ip route add 9.9.9.9 via 6.6.6.6 > > $ ping -I 6.6.6.6 9.9.9.9 > PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. > > ^C > --- 9.

答复: [PATCH] net: Fix the arp error in some cases

2020-06-14 Thread Guodeqing (A)
-邮件原件- 发件人: David Ahern [mailto:dsah...@gmail.com] 发送时间: Saturday, June 13, 2020 22:32 收件人: Guodeqing (A) ; da...@davemloft.net 抄送: kuz...@ms2.inr.ac.ru; netdev@vger.kernel.org; d...@cumulusnetworks.com; k...@kernel.org 主题: Re: [PATCH] net: Fix the arp error in some cases On 6/13/20

Re: [PATCH] net: Fix the arp error in some cases

2020-06-13 Thread David Ahern
On 6/13/20 12:49 AM, guodeqing wrote: > ie., > $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 > > $ ip rule add from 6.6.6.6 table without a default entry in table the lookup proceeds to the next table - which by default is the main table. > > $ ip route add 9.9.9.9 via 6.6.6.6 > > $

[PATCH] net: Fix the arp error in some cases

2020-06-12 Thread guodeqing
ie., $ ifconfig eth0 6.6.6.6 netmask 255.255.255.0 $ ip rule add from 6.6.6.6 table $ ip route add 9.9.9.9 via 6.6.6.6 $ ping -I 6.6.6.6 9.9.9.9 PING 9.9.9.9 (9.9.9.9) from 6.6.6.6 : 56(84) bytes of data. ^C --- 9.9.9.9 ping statistics --- 3 packets transmitted, 0 received, 100% packet los