syscall: Netlink message captured by syscall.ParseNetlinkMessage always has 0 pid #67133
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.0 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
I followed this example and wrote a simple program to subscribe netlink message using syscall.ParseNetlinkMessage
But the pid of the message is always 0
Then I tried create kubernetes pod on the node, CNI is calico
What did you see happen?
sender PID is always 0
What did you expect to see?
The pid should be the id of process who sent out the request. For example, in my case it should be calico.
If I use
rtmon
and extract the message using iproute2, I could see correct pidThe text was updated successfully, but these errors were encountered: