On Sunday, October 30, 2011 23:51:12 Simon Wunderlich wrote:
Instead of acquiring the first interfaces originator through hard interface (including referencing/dereferencing), we can use the cached value in bat_priv->own_orig.
There might be some cases where this function was implicitly used to check whether there is a hard interface configured at all (i.e. if batman is active), therfore this is patch is an RFC.
Most of the functions do not simply retrieve the addr but also check if there is a primary interface. So, what happens if batman-adv has no primary_if ? AFAIK that can occur if all added hard-interfaces are down.
What happens with BLAII if there is no primary interface ?
Cheers, Marek