Re: [PATCH v3 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread David Miller
From: Wei Wang Date: Thu, 16 May 2019 13:30:54 -0700 > From: Wei Wang > > When inserting route cache into the exception table, the key is > generated with both src_addr and dest_addr with src addr routing. > However, current logic always assumes the src_addr used to generate the > key is a /128

Re: [PATCH v3 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread Martin Lau
On Thu, May 16, 2019 at 01:30:54PM -0700, Wei Wang wrote: > From: Wei Wang > > When inserting route cache into the exception table, the key is > generated with both src_addr and dest_addr with src addr routing. > However, current logic always assumes the src_addr used to generate the > key is a /

[PATCH v3 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread Wei Wang
From: Wei Wang When inserting route cache into the exception table, the key is generated with both src_addr and dest_addr with src addr routing. However, current logic always assumes the src_addr used to generate the key is a /128 host address. This is not true in the following scenarios: 1. When