zone: avoid duplicates in devices list
authorTony Ambardar <itugrok@yahoo.com>
Mon, 22 Mar 2021 01:06:18 +0000 (18:06 -0700)
committerJo-Philipp Wich <jo@mein.io>
Tue, 23 Mar 2021 08:59:37 +0000 (09:59 +0100)
commit7b844f4fb361d28ffebc95bc305347d6450569f6
tree9e73bc56c66dbe52731eafcdc8b6555da6787df9
parentc2c72c6fc29cb895f25759d76e10c00a8faaa148
zone: avoid duplicates in devices list

While resolving zones to devices it's possible to introduce duplicates due
to the presence of aliased interfaces.

Fix this by consolidating the fw3_zone->devices list during creation.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
zones.c