Skip to content

Commit

Permalink
linux_defaults: add default rt protocol to use for fib rules and routes
Browse files Browse the repository at this point in the history
Define a default rt protocol (unix.RTPROT_KERNEL at the moment) that
will be used for our fib rules and routes.

Signed-off-by: Nikolay Aleksandrov <[email protected]>
  • Loading branch information
Nikolay Aleksandrov authored and youngnick committed Mar 25, 2023
1 parent e980ca0 commit 011bb96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/datapath/linux/linux_defaults/linux_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package linux_defaults

import (
"time"

"golang.org/x/sys/unix"
)

// Linux specific constants used in Linux datapath
Expand Down Expand Up @@ -64,6 +66,9 @@ const (
// IPSecProtocolID IP protocol ID for IPSec defined in RFC4303
RouteProtocolIPSec = 50

// RTProto is the default protocol we install our fib rules and routes with
RTProto = unix.RTPROT_KERNEL

// RulePriorityWireguard is the priority of the rule used for routing packets to Wireguard device for encryption
RulePriorityWireguard = 1

Expand Down

0 comments on commit 011bb96

Please sign in to comment.