lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 27 Mar 2007 16:25:19 +0200
From:	Thomas Graf <tgraf@...g.ch>
To:	"YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@...ux-ipv6.org>
Cc:	davem@...emloft.net, takamiya@...ntts.co.jp, netdev@...r.kernel.org
Subject: Re: [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route.

* YOSHIFUJI Hideaki / ?$B5HF#1QL@ <yoshfuji@...ux-ipv6.org> 2007-03-27 22:45
> When looking up route for destination with rules with
> source address restrictions, we may need to find a source
> address for the traffic if not given.

Out of curiosity, what sort of rules would have this flag set?
The majority of lookups don't provide a valid source address.
This new address search could become very expensive, because
none of the results are cached.

> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
> ---
>  include/linux/fib_rules.h |    7 +++++--
>  net/ipv6/fib6_rules.c     |   34 +++++++++++++++++++++++++++++++---
>  2 files changed, 36 insertions(+), 5 deletions(-)
> 
> diff --git a/include/linux/fib_rules.h b/include/linux/fib_rules.h
> index 8270aac..2bbfa87 100644
> --- a/include/linux/fib_rules.h
> +++ b/include/linux/fib_rules.h
> @@ -5,8 +5,11 @@
>  #include <linux/rtnetlink.h>
>  
>  /* rule is permanent, and cannot be deleted */
> -#define FIB_RULE_PERMANENT	1
> -#define FIB_RULE_INVERT		2
> +#define FIB_RULE_PERMANENT	0x00000001
> +#define FIB_RULE_INVERT		0x00000002
> +
> +/* try to find source address in routing lookups */
> +#define	FIB_RULE_FIND_SADDR	0x00010000
>  
>  struct fib_rule_hdr
>  {

This chunk won't apply to latest net-2.6.22, I've added two more
flags yesterday.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ