On Friday, March 23, 2012 23:22:33 Andrew Lunn wrote:
I've not looked at the code, but i assume this can happen because there is not a per algorithm receive handler? Maybe it makes sense to have a receive handler in algo structure, which can handle per algorithm receive functions? The common PDUs can be handled first and then a call into the algo receive function made to dispatch algo specific PDUs.
Each algorithm registers its own packet types which end up in the protocol specific receive function. Nevertheless, we might receive a B.A.T.M.A.N. V packet on an interface not running B.A.T.M.A.N. V.
Regards, Marek