diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-05-11 15:57:39 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-05-12 09:37:00 -0400 |
| commit | e3d901f8638dec32eac4c2690912138963ae5a05 (patch) | |
| tree | 8b61690f526d085040cc5bd8e1ea98a5ec9f8683 /lib/if.h | |
| parent | 449e54fd12372273dcac68781eb77c1297aeb2ba (diff) | |
lib,zebra: Use a flag to track down status for connected addrs
Track 'down' state of connected addresses with a new flag. We
may have multiple addresses on an interface that share a prefix;
in those cases, we need to determine when the first address
is valid, to install a connected route, and similarly detect
when the last address goes 'down', to remove the connected
route.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/if.h')
| -rw-r--r-- | lib/if.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -393,6 +393,7 @@ struct connected { #define ZEBRA_IFC_REAL (1 << 0) #define ZEBRA_IFC_CONFIGURED (1 << 1) #define ZEBRA_IFC_QUEUED (1 << 2) +#define ZEBRA_IFC_DOWN (1 << 3) /* The ZEBRA_IFC_REAL flag should be set if and only if this address exists in the kernel and is actually usable. (A case where it exists @@ -406,6 +407,8 @@ struct connected { in the kernel. It may and should be set although the address might not be usable yet. (compare with ZEBRA_IFC_REAL) + The ZEBRA_IFC_DOWN flag is used to record that an address is + present, but down/unavailable. */ /* Flags for connected address. */ |
