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
The XdpContext's corresponding C struct xdp_md defined in the Linux headers under include/uapi/linux/bpf.h has a field ingress_ifindex which represents the interface index as determined by the OS. It would be nice if that was also available in Aya's XdpContext.
The text was updated successfully, but these errors were encountered:
I'm promoting this to an issue from #1130 in part because I need this functionality for my toy project. I'm going to pull this feature from a fork for now, but I figure I'd offer it upstream as well. I will submit a PR shortly. If there is a legitimate reason for excluding that field in Aya, then my apologies -- I couldn't find much info on it.
gth828r
added a commit
to gth828r/aya
that referenced
this issue
Jan 21, 2025
This change exposes the ifindex field from the underlying xdp_md
data structure to the XdpContext in Aya. The ifindex represents the
unique OS-provided index for a network interface.
Fixesaya-rs#1140
This change exposes the ifindex field from the underlying xdp_md
data structure to the XdpContext in Aya. The ifindex represents the
unique OS-provided index for a network interface.
Fixesaya-rs#1140
The XdpContext's corresponding C
struct xdp_md
defined in the Linux headers underinclude/uapi/linux/bpf.h
has a fieldingress_ifindex
which represents the interface index as determined by the OS. It would be nice if that was also available in Aya's XdpContext.The text was updated successfully, but these errors were encountered: