Skip to content

Commit

Permalink
set RPF to strict as test provision for that.
Browse files Browse the repository at this point in the history
Make tests execute the path again after we introduced the option to
disable RPF.
  • Loading branch information
tomastigera committed Jun 18, 2024
1 parent 13bd2a8 commit cfe4379
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions felix/bpf/ut/bpf_prog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,12 @@ func objLoad(fname, bpfFsDir, ipFamily string, topts testOpts, polProg, hasHostC
} else if topts.ipv6 {
ifaceLog := topts.progLog + "-" + bpfIfaceName
globals := libbpf.TcGlobalData6{
Tmtu: natTunnelMTU,
VxlanPort: testVxlanPort,
PSNatStart: uint16(topts.psnaStart),
PSNatLen: uint16(topts.psnatEnd-topts.psnaStart) + 1,
Flags: libbpf.GlobalsIPv6Enabled | libbpf.GlobalsNoDSRCidrs,
Tmtu: natTunnelMTU,
VxlanPort: testVxlanPort,
PSNatStart: uint16(topts.psnaStart),
PSNatLen: uint16(topts.psnatEnd-topts.psnaStart) + 1,
Flags: libbpf.GlobalsIPv6Enabled | libbpf.GlobalsNoDSRCidrs |
libbpf.GlobalsRPFOptionStrict,
LogFilterJmp: 0xffffffff,
}

Expand Down

0 comments on commit cfe4379

Please sign in to comment.