Skip to content

Commit

Permalink
FRR introduced a local host-route protocol which is installed by kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellebyte authored and MaxRink committed Sep 10, 2024
1 parent 9281253 commit 8e0d22f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/nl/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func GetProtocolNumber(protocol string, frr bool) int {
return unix.RTPROT_ZEBRA
// this is a hack as there is no direct representation in Linux for
// directly connected routes but normally they are installed by kernel
case "local":
return unix.RTPROT_KERNEL
case "connected":
return unix.RTPROT_KERNEL
//
Expand Down

0 comments on commit 8e0d22f

Please sign in to comment.