Skip to content

Error getting data from BPF_MAP_TYPE_PERF_EVENT_ARRAY #779

Answered by YJesus
YJesus asked this question in Q&A
Discussion options

You must be logged in to vote

Meh, again my mistake

struct sockaddr_in *ipv4 = (struct sockaddr_in *)uaddr->sa_data;

Must be:

struct sockaddr_in *ipv4 = (struct sockaddr_in *)uaddr;

shame on me !!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brycekahle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #778 on September 01, 2022 13:55.