diff options
| author | Russ White <russ@riw.us> | 2022-01-18 09:08:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 09:08:38 -0500 |
| commit | 05786ac7744a6077a7f5aff9d2bfe1c92e54e17c (patch) | |
| tree | 7b25f5cda483135e144e490d3e8ac970b5781d7f /ospfd/ospf_route.c | |
| parent | c748ab25673c118e7ae67a82348af5f54c2bec64 (diff) | |
| parent | 485e8b5662dbecdb9f2e1a3e0a88dbfaffd640b2 (diff) | |
Merge pull request #9644 from opensourcerouting/ospf-opaque-attrs
OSPF opaque route attributes
Diffstat (limited to 'ospfd/ospf_route.c')
| -rw-r--r-- | ospfd/ospf_route.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index 502a4a08c1..ec0c5524c9 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -39,6 +39,22 @@ #include "ospfd/ospf_zebra.h" #include "ospfd/ospf_dump.h" +const char *ospf_path_type_name(int path_type) +{ + switch (path_type) { + case OSPF_PATH_INTRA_AREA: + return "Intra-Area"; + case OSPF_PATH_INTER_AREA: + return "Inter-Area"; + case OSPF_PATH_TYPE1_EXTERNAL: + return "External-1"; + case OSPF_PATH_TYPE2_EXTERNAL: + return "External-2"; + default: + return "Unknown"; + } +} + struct ospf_route *ospf_route_new(void) { struct ospf_route *new; |
