From 5aeb4f3c60789b09b5194da5ea63d036d6c80f6c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 17 Sep 2019 16:19:45 +0200 Subject: ospf6d: track explicit interface type config If the interface doesn't exist in system, we'll default to broadcast and then later not change that when the interface comes up. Explicitly track whether the user configured the type and properly auto-set it if they didn't. Fixes: #3930 Fixes: #4873 Signed-off-by: David Lamparter --- ospf6d/ospf6_interface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ospf6d/ospf6_interface.h') diff --git a/ospf6d/ospf6_interface.h b/ospf6d/ospf6_interface.h index e0c39a29b4..53a8910f4d 100644 --- a/ospf6d/ospf6_interface.h +++ b/ospf6d/ospf6_interface.h @@ -55,6 +55,7 @@ struct ospf6_interface { /* Network Type */ uint8_t type; + bool type_cfg; /* Router Priority */ uint8_t priority; -- cgit v1.2.3