[PR #1033] [MERGED] Move ebpf code to its own package to avoid crash issues in Android #13248

Closed
opened 2026-08-05 02:07:53 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1033
Author: @mlsmaycon
Created: 7/27/2023
Status: Merged
Merged: 7/27/2023
Merged by: @mlsmaycon

Base: mainHead: fix/move-code-to-ebpf-pkg


📝 Commits (3)

  • cccc14d Move ebpf code to its own package to avoid crash issues in Android
  • 803ae95 move c file to own folder
  • ec38bbe fix lint

📊 Changes

8 files changed (+24 additions, -18 deletions)

View changed files

📝 client/internal/wgproxy/ebpf/bpf_bpfeb.go (+1 -1)
📝 client/internal/wgproxy/ebpf/bpf_bpfeb.o (+0 -0)
📝 client/internal/wgproxy/ebpf/bpf_bpfel.go (+1 -1)
📝 client/internal/wgproxy/ebpf/bpf_bpfel.o (+0 -0)
📝 client/internal/wgproxy/ebpf/loader.go (+11 -7)
📝 client/internal/wgproxy/ebpf/loader_test.go (+4 -4)
📝 client/internal/wgproxy/ebpf/src/portreplace.c (+0 -0)
📝 client/internal/wgproxy/proxy_ebpf.go (+7 -5)

📄 Description

Describe your changes

Older versions of android crashes because of the bytecode files even when they aren't loaded as it was our case

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1033 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 7/27/2023 **Status:** ✅ Merged **Merged:** 7/27/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/move-code-to-ebpf-pkg` --- ### 📝 Commits (3) - [`cccc14d`](https://github.com/netbirdio/netbird/commit/cccc14dd16df00250ca7a7ae2cb5bd31326d90c8) Move ebpf code to its own package to avoid crash issues in Android - [`803ae95`](https://github.com/netbirdio/netbird/commit/803ae957cca17cf28c96eb524945ba59fb3ca9fe) move c file to own folder - [`ec38bbe`](https://github.com/netbirdio/netbird/commit/ec38bbed9b0bec5f2ae5b24ba3192eaeca87540a) fix lint ### 📊 Changes **8 files changed** (+24 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/wgproxy/ebpf/bpf_bpfeb.go` (+1 -1) 📝 `client/internal/wgproxy/ebpf/bpf_bpfeb.o` (+0 -0) 📝 `client/internal/wgproxy/ebpf/bpf_bpfel.go` (+1 -1) 📝 `client/internal/wgproxy/ebpf/bpf_bpfel.o` (+0 -0) 📝 `client/internal/wgproxy/ebpf/loader.go` (+11 -7) 📝 `client/internal/wgproxy/ebpf/loader_test.go` (+4 -4) 📝 `client/internal/wgproxy/ebpf/src/portreplace.c` (+0 -0) 📝 `client/internal/wgproxy/proxy_ebpf.go` (+7 -5) </details> ### 📄 Description ## Describe your changes Older versions of android crashes because of the bytecode files even when they aren't loaded as it was our case ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:07:53 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13248