forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: Move distance related defines into their own header
Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information
1 parent
3003c3e
commit 6fc9686
Showing
16 changed files
with
51 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
/* | ||
* Zebra distance header | ||
* Copyright (C) 2023 NVIDIA Corporation | ||
* Donald Sharp | ||
* | ||
* Distance related defines. FRR needs a common set | ||
* of values for distance. | ||
*/ | ||
#ifndef __FRRDISTANCE_H__ | ||
#define __FRRDISTANCE_H__ | ||
|
||
/* Default Administrative Distance of each protocol. */ | ||
#define ZEBRA_KERNEL_DISTANCE_DEFAULT 0 | ||
#define ZEBRA_CONNECT_DISTANCE_DEFAULT 0 | ||
#define ZEBRA_STATIC_DISTANCE_DEFAULT 1 | ||
#define ZEBRA_RIP_DISTANCE_DEFAULT 120 | ||
#define ZEBRA_RIPNG_DISTANCE_DEFAULT 120 | ||
#define ZEBRA_OSPF_DISTANCE_DEFAULT 110 | ||
#define ZEBRA_OSPF6_DISTANCE_DEFAULT 110 | ||
#define ZEBRA_ISIS_DISTANCE_DEFAULT 115 | ||
#define ZEBRA_IBGP_DISTANCE_DEFAULT 200 | ||
#define ZEBRA_EBGP_DISTANCE_DEFAULT 20 | ||
#define ZEBRA_TABLE_DISTANCE_DEFAULT 15 | ||
#define ZEBRA_TABLEDIRECT_DISTANCE_DEFAULT 14 | ||
#define ZEBRA_EIGRP_DISTANCE_DEFAULT 90 | ||
#define ZEBRA_NHRP_DISTANCE_DEFAULT 10 | ||
#define ZEBRA_LDP_DISTANCE_DEFAULT 150 | ||
#define ZEBRA_BABEL_DISTANCE_DEFAULT 100 | ||
#define ZEBRA_SHARP_DISTANCE_DEFAULT 150 | ||
#define ZEBRA_PBR_DISTANCE_DEFAULT 200 | ||
#define ZEBRA_OPENFABRIC_DISTANCE_DEFAULT 115 | ||
#define ZEBRA_MAX_DISTANCE_DEFAULT 255 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters