16
General Discussion / Re: Fritzbox (IP-Client mode) SIP + NAT + dynamic IP Change
« on: October 19, 2021, 09:02:32 pm »
I digged a bit further.
States on the PPPoE interface won't be deleted by interface_bring_down() function for two reasons:
Houston, we have a problem, do we?
What I don't understand is why one would like to kill mpd5 process in this situation.
States on the PPPoE interface won't be deleted by interface_bring_down() function for two reasons:
- PPPoE interface will be deleted when killing mpd5. Hence, if (does_interface_exist($realif)) in interface_bring_down() function will always return false and $pfctlflush array will remain empty.
- Even if the PPPoE interface still would be alive, state killing would not succeed as states by default are floating (i. e. not bound to interfaces). Hence, state killing command mwexecf('/sbin/pfctl -i %s -Fs', $dev); in interface_bring_down() function won't delete any states at all.
That no states are bound to the PPPoE interface can be easily verified with the following command:
pfctl -i pppoe0 -s states
Houston, we have a problem, do we?
What I don't understand is why one would like to kill mpd5 process in this situation.