Skip to content

Commit

Permalink
Fix code not matching the comment
Browse files Browse the repository at this point in the history
Signed-off-by: mozillazg <mozillazg101@gmail.com>
  • Loading branch information
mozillazg authored and brb committed Jul 10, 2023
1 parent f4e7b0e commit fe0c59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/libpcap/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func InjectFilter(program *ebpf.ProgramSpec, filterExpr string) (err error) {
// stack area is safe to use. Here we use stack from -40
// because -32, -24, -16 are reserved for pcap-filter ebpf, see
// the comments in compile.go
StackOffset: 40,
StackOffset: 32,
})
if err != nil {
return
Expand Down

0 comments on commit fe0c59f

Please sign in to comment.