From: Thomas Graf Date: Fri, 13 Oct 2006 22:01:03 +0000 (-0700) Subject: [IPv6] rules: Use RT6_LOOKUP_F_HAS_SADDR and fix source based selectors X-Git-Tag: v2.6.19-rc3~206^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adaa70bbdfbc725e485179b06c8b23a20fbb7952;p=pandora-kernel.git [IPv6] rules: Use RT6_LOOKUP_F_HAS_SADDR and fix source based selectors Fixes rt6_lookup() to provide the source address in the flow and sets RT6_LOOKUP_F_HAS_SADDR whenever it is present in the flow. Avoids unnecessary prefix comparisons by checking for a prefix length first. Fixes the rule logic to not match packets if a source selector has been specified but no source address is available. Thanks to Kim Nordlund for working on this patch with me. Signed-off-by: Thomas Graf Acked-by: Ville Nuorvala Signed-off-by: David S. Miller --- Reading git-diff-tree failed