iprule: rework interface based rules to handle dynamic interfaces
authorAlexander Couzens <lynxis@fe80.eu>
Fri, 29 Jun 2018 21:15:28 +0000 (23:15 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Thu, 5 Jul 2018 00:45:37 +0000 (02:45 +0200)
commit5cf79759a24e9bb2a6a3aef7c83d73efb9bf2df3
treef9bdb72949126a14687f6205e24d5cd29cbe638a
parent57f87ad89b38d1ea574c39a2d720747120dcc5fb
iprule: rework interface based rules to handle dynamic interfaces

Previous netifd would only apply `ip rule`s while config phase.
If the iprule is depending on an interface (iif or oif), the rule
will fail if the interface is not up.

Allow iprules to track interfaces and their devices by using
the interface events.

Fixes: FS#1571
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
iprule.c
iprule.h