babeld: tweak configuration for source-specific features
[feed/routing.git] / babeld / files / babeld.config
index b58270cafea902a9da311c6bf63b2b2ca2a265fe..fa22fd63cf1d2227d36bd08303534043905b5e2f 100644 (file)
@@ -1,8 +1,10 @@
 package babeld
 
-# Configuration set in this file ends up in /var/etc/babeld.conf
-# Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf,
-# so you can use one or the other, or even both at the same time.
+# Configuration set in this file ends up in /var/etc/babeld.conf.
+# Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf, so
+# you can use one or the other, or even both at the same time.  If an
+# option is defined in both files, the version in /var/etc/babeld.conf
+# takes precedence.
 
 # See "man babeld" for all available options ("Global options").
 # Important: remember to use '_' instead of '-' in option names.
@@ -11,6 +13,9 @@ config general
        # option 'debug' '1'
        # option 'local_port' '33123'
        # option 'log_file' '/var/log/babeld.log'
+       ## Enable ipv6-subtrees by default since OpenWrt should ship with a
+       ## recent enough kernel for it to work.
+       option 'ipv6_subtrees' 'true'
        ## This seems somewhat buggy on BB.  If you need only one
        ## import-table statement, "option import_table 42" should work.
        # list 'import_table' '42'
@@ -52,11 +57,12 @@ config filter
        option 'ignore' 'true'
        # Type
        option 'type'   'redistribute'
-       # Selectors: ip, eq, le, ge, neigh, id, proto, local, if
+       # Selectors: ip, eq, le, ge, src_ip, src_eq, src_le, src_ge, neigh, id,
+       # proto, local, if.
        option 'ip'     '0.0.0.0/0'
        option 'eq'     '0'
        option 'proto'  '3'
-       # Action 
+       # Action (one of: allow, deny, metric XXX, src-prefix XXX).
        option 'action' 'metric 128'
 
 # Notice that the 'local' selector is a boolean.