+static int rt6_validate_source( struct sk_buff *skb) {
+ struct rt6_info *rt;
+ rt=rt6_lookup(&skb->nh.ipv6h->saddr,NULL,0,0);
+ if ( rt!=NULL ) {
+ if (rt->rt6i_idev->dev == skb->dev )
+ return 0;
Before comparing incoming interface, one could che
> @@ -151,6 +152,7 @@
> /* index values for the variables in ipv6_devconf */
> enum {
> DEVCONF_FORWARDING = 0,
> + DEVCONF_RPFILTER = 0,
> DEVCONF_HOPLIMIT,
> DEVCONF_MTU6,
> DEVCONF_ACCEPT_RA,
That doesn't look quite right :)
- z
-
To unsubscribe from th
-- Forwarded message --
Date: Fri, 13 Jan 2006 19:34:44 +0100 (CET)
From: Denis Semmau <[EMAIL PROTECTED]>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] RP filter support for IPv6, kernel 2.6.15
I've made a patch in order to enable reverse path filtering for IPv6.
The rp_filter