You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried chatgpt's suggestion on using ringbuffer to send message to each other to and flo (i couldnt get it to work)
can someone pls show an example whereby i can call ebpf c program's function passing variables with golang instead of through accepting argument through the command line?
./ipfilter ip 123.123.123.123 -a -m src <-- instead of doing this on the command line, how do i use golang to pass the parameters directly to ebpf c and also maybe use ringbuffer to send back a notification to golang etc upon changes made?
p.s. : thx in advance. this is my last bit of needing ebpf performance in golang, without this example, ebpf with golang is really quite useless.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i tried chatgpt's suggestion on using ringbuffer to send message to each other to and flo (i couldnt get it to work)
can someone pls show an example whereby i can call ebpf c program's function passing variables with golang instead of through accepting argument through the command line?
e.g. i have done the xdp-filter but
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/using-xdp-filter-for-high-performance-traffic-filtering-to-prevent-ddos-attacks_configuring-and-managing-networking
./ipfilter ip 123.123.123.123 -a -m src <-- instead of doing this on the command line, how do i use golang to pass the parameters directly to ebpf c and also maybe use ringbuffer to send back a notification to golang etc upon changes made?
p.s. : thx in advance. this is my last bit of needing ebpf performance in golang, without this example, ebpf with golang is really quite useless.
i mean, i rather just do it in c
Beta Was this translation helpful? Give feedback.
All reactions