Re: [B.A.T.M.A.N.] [PATCH v10 01/16] batman-adv: Handle parent interfaces in a different netns

Marek Lindner
2016-07-15T08:48:59Z

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]

On Sunday, July 03, 2016 13:31:33 Sven Eckelmann wrote:
> From: Andrew Lunn <andrew@lunn.ch>
>
> batman-adv tries to prevent the user from placing a batX soft
> interface into another batman mesh as a hard interface. It does this
> by walking up the devices list of parents and ensures they are all
> none batX interfaces. iflink can point to an interface in a different
> namespace, so also retrieve the parents name space when finding the
> parent and use it when doing the comparison.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> [sven@narfation.org: Fix alignments, simplify parent netns retrieval]
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
> ---
> compat.h | 7 ++++++
> net/batman-adv/hard-interface.c | 50
> +++++++++++++++++++++++++++++++++++------ 2 files changed, 50
> insertions(+), 7 deletions(-)

Applied in revision bea804d.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]