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

"phyint" command does not reenable vifs after "disable-vifs" #100

Closed jp-t closed 7 years ago

jp-t commented 7 years ago

a configuration file like:

disable-vifs
...
phyint eth0 enable igmpv3 dr-priority 1 ttl-threshold 1

leaves eth0 disabled.

This is due to the "token" variable being overwritten before use while reading the "phyint" line in the first pass. So, only the "disable-vifs" indication is used while creating the vif list from the kernel, resulting in no interface available at all.

I'm preparing a patch.

troglobit commented 7 years ago

Ah ... yeah the file parser has some rough edges. Thank you for taking the time to report and fix this!