Re: [PATCH net 11/12] batman-adv: fix iflink detection in batadv_is_on_batman_iface

2022-05-14 Thread Sven Eckelmann
On Thursday, 1 October 2020 09:59:35 CEST Sabrina Dubroca wrote: > device has the same ifindex as its link. Let's use the presence of a > ndo_get_iflink operation, rather than the value it returns, to detect > a device without a link. There wasn't any activity in this patchset since a while, it

[PATCH net 11/12] batman-adv: fix iflink detection in batadv_is_on_batman_iface

2020-10-01 Thread Sabrina Dubroca
BATMAN compares ifindex with dev_get_iflink to detect devices that don't have a parent, but that's wrong, since a device can have the same index as its parent if it's created in a different network namespace: ip netns add main ip netns add peer ip -net main link add dummy0 type dummy