Skip to content

Commit

Permalink
Revert "datapath: remove RouteProtocolIPSec and use proto kernel"
Browse files Browse the repository at this point in the history
This reverts commit 660fd79.

Signed-off-by: André Martins <[email protected]>
  • Loading branch information
aanm committed Apr 1, 2023
1 parent a9cad19 commit 05593ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/datapath/linux/linux_defaults/linux_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ const (
// RouterMarkNodePort
MaskMultinodeNodeport = 0x80

// 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

Expand Down
2 changes: 1 addition & 1 deletion pkg/datapath/linux/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ func (n *linuxNodeHandler) createNodeIPSecInRoute(ip *net.IPNet) route.Route {
Device: device,
Prefix: *ip,
Table: linux_defaults.RouteTableIPSec,
Proto: linux_defaults.RTProto,
Proto: linux_defaults.RouteProtocolIPSec,
Type: route.RTN_LOCAL,
}
}
Expand Down

0 comments on commit 05593ee

Please sign in to comment.