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 saw that the C struct xdp_md defined in the Linux headers under include/uapi/linux/bpf.h has a field ingress_ifindex. When I look at the definition of the XdpContext in Aya here I do not see a way to access that field. Is there a reason for that?
At this point I am just playing around, but one of the things I was trying to do was attach the eBPF program to multiple interfaces and get packet counters. In order to do that per-interface with the C API, I was relying on the ingress_ifindex. Is there an alternative way to do that in Aya?
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
-
Hi,
I saw that the C
struct xdp_md
defined in the Linux headers underinclude/uapi/linux/bpf.h
has a fieldingress_ifindex
. When I look at the definition of the XdpContext in Aya here I do not see a way to access that field. Is there a reason for that?At this point I am just playing around, but one of the things I was trying to do was attach the eBPF program to multiple interfaces and get packet counters. In order to do that per-interface with the C API, I was relying on the
ingress_ifindex
. Is there an alternative way to do that in Aya?Thanks!
Tim
Beta Was this translation helpful? Give feedback.
All reactions