troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

Allow use of loopback addresses (/32) #91

Closed vincentbernat closed 7 years ago

vincentbernat commented 7 years ago

pimd had to be compiled with --disable-masklen-check to allow the use of loopback addresses (/32). The option is a bit a misnomer as it really only enables the use of a /32, not any masklen.

As it is considered a good practice when having multiple interfaces to put C-BSR/C-RP on a loopback interface, it seems better to enable the ability to do so by default in pimd.

This commit just removes the compile-time option and enables it by default.

If this is too intrusive, I can also add a runtime flag for this option (whose default value depends on the compile-time flag).

troglobit commented 7 years ago

Great stuff, thank you for this!