Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constant value has to be of type uint64 (#261) #264

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kern/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// .rodata section bug via : https://github.com/ehids/ecapture/issues/39
#ifndef KERNEL_LESS_5_2
// alawyse, we used it in openssl_tc.h
const volatile u32 target_port = 443;
const volatile u64 target_port = 443;
// Optional Target PID
const volatile u64 target_pid = 0;
const volatile u64 target_uid = 0;
Expand Down
3 changes: 2 additions & 1 deletion user/module/imodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ func (this *Module) readEvents() error {
case e.Type() == ebpf.PerfEventArray:
this.perfEventReader(errChan, e)
default:
return fmt.Errorf("%s\tNot support mapType:%s , mapinfo:%s", this.child.Name(), e.Type().String(), e.String())
return fmt.Errorf("%s\tunsupported mapType:%s , mapinfo:%s",
this.child.Name(), e.Type().String(), e.String())
}
}

Expand Down
2 changes: 1 addition & 1 deletion user/module/probe_openssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (this *MOpenSSLProbe) constantEditor() []manager.ConstantEditor {
},
{
Name: "target_port",
Value: uint32(this.conf.(*config.OpensslConfig).Port),
Value: uint64(this.conf.(*config.OpensslConfig).Port),
},
}

Expand Down