Mismatch between code and documentation for default pipe mode
Hi, I had a headache trying to understand why my pipe “preference” option was ignored, and then found out about pipe “mode”. The documentation says that the default mode is “opaque” (see http://bird.network.cz/?get_doc&f=bird-6.html#ss6.6 ) But the code doesn't say so, see https://git.nic.cz/redmine/projects/bird/repository/revisions/master/entry/p... : PIPE_CFG->mode = PIPE_TRANSPARENT; What is the intended default? Regards, Benjamin
On Sun, Mar 04, 2012 at 11:51:24PM +0100, Benjamin Cama wrote:
Hi,
I had a headache trying to understand why my pipe ???preference??? option was ignored, and then found out about pipe ???mode???. The documentation says that the default mode is ???opaque??? (see http://bird.network.cz/?get_doc&f=bird-6.html#ss6.6 )
But the code doesn't say so, see https://git.nic.cz/redmine/projects/bird/repository/revisions/master/entry/p... :
PIPE_CFG->mode = PIPE_TRANSPARENT;
What is the intended default?
Hello This is a bug in the documentation, the transparent mode is the intended default. Opaque mode is more or less obsolete and is here mostly for compatibility. When using the transparent mode, you could change the preference option in filters. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Benjamin Cama -
Ondrej Zajicek