netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rp_filter backward compatibility
@ 2010-08-30 15:25 Nicolas Dichtel
  2010-08-30 16:47 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2010-08-30 15:25 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Stephen Hemminger

I'm surprised by the commit 27fed4175acf81ddd91d9a4ee2fd298981f60295 (ip: fix 
logic of reverse path filter sysctl). This commit breaks backward compatibility.
I know that logic was wrong, but for years it was mandatory to set both 
all.rp_filter and <device>.rp_filter to enable it, ie setting only all.rp_filter 
had no consequences. Now, when all.rp_filter is enabled, RPF is enabled for all 
interfaces.
Help of Kconfig explains:

                                                                 "To turn
           rp_filter on use:

           echo 1 > /proc/sys/net/ipv4/conf/<device>/rp_filter
            *and*
           echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter"

At least, one of this action should be done:
  - fixing help (Documentation/networking/ip-sysctl.txt is up to date)
  - reverting the patch (this will force to set all.rp_filter to 3 if some 
interfaces use loose mode and some others strict mode)

What is your opinion?

Regards,
Nicolas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-01 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 15:25 rp_filter backward compatibility Nicolas Dichtel
2010-08-30 16:47 ` David Miller
2010-08-31 15:50   ` Nicolas Dichtel
2010-09-01 21:30     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).