Skip to content

Commit

Permalink
zebra: Add missing proto translations
Browse files Browse the repository at this point in the history
Add missing isis and eigrp proto translations.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Sep 25, 2024
1 parent e41ae0a commit f53dde0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra/zebra_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ static int proto_trans(int type)
return 3; /* static route */
case ZEBRA_ROUTE_RIP:
return 8; /* rip */
case ZEBRA_ROUTE_ISIS:
return 9;
case ZEBRA_ROUTE_RIPNG:
return 1; /* shouldn't happen */
case ZEBRA_ROUTE_OSPF:
Expand All @@ -237,6 +239,8 @@ static int proto_trans(int type)
return 1; /* shouldn't happen */
case ZEBRA_ROUTE_BGP:
return 14; /* bgp */
case ZEBRA_ROUTE_EIGRP:
return 16;
default:
return 1; /* other */
}
Expand Down

0 comments on commit f53dde0

Please sign in to comment.