Skip to content

Update function names#260

Open
TheMagicNacho wants to merge 1 commit intoaya-rs:mainfrom
TheMagicNacho:update-function-names
Open

Update function names#260
TheMagicNacho wants to merge 1 commit intoaya-rs:mainfrom
TheMagicNacho:update-function-names

Conversation

@TheMagicNacho
Copy link

@TheMagicNacho TheMagicNacho commented Dec 31, 2025

I'm guessing that the the tutorials were coppied from firewall to log, but some of the function names were not refactored in the process. This resulted in a bug where the tutorial applications would not run, but cargo check would pass.

This fix makes the tutorial function names match accross BPF and user-land; allowing the tutorial to run without any modifications.


This change is Reviewable

@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for aya-rs ready!

Name Link
🔨 Latest commit f6fcef2
🔍 Latest deploy log https://app.netlify.com/projects/aya-rs/deploys/6955a1edb5775e00087b0772
😎 Deploy Preview https://deploy-preview-260--aya-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

#[xdp]
pub fn xdp_firewall(ctx: XdpContext) -> u32 {
match try_xdp_firewall(ctx) {
pub fn xdp_log(ctx: XdpContext) -> u32 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this change either. The userspace side expects the old name:

bpf.program_mut("xdp_firewall").unwrap().try_into()?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants