interface-ip: unify host and proto route handling
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 May 2022 14:45:52 +0000 (16:45 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 19 May 2022 14:45:56 +0000 (16:45 +0200)
commit4b4849cf5e5a784aca40be55158744811b172e76
tree283b50fb03f48413680a1bef0e9210d01ec25039
parent136006b88826feff4f0a36ffab511d1366483cf2
interface-ip: unify host and proto route handling

Make host routes use the same update logic as regular proto routes, including
the enable/disable handling.
This avoids unnecessary remove/add cycles when adding the same host route
multiple times

Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface-ip.c