Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Oct 27, 2025

Without CONFIG_PACKET, the kernel refuses AF_PACKET sockets, so those utilities can't run. For user-level networking in virtualized setups especially when the test harness relies on DHCP. Thus, we should enable CONFIG_PACKET (built-in or module) in the guest kernel.


Summary by cubic

Enable CONFIG_PACKET in the guest kernel to allow AF_PACKET sockets. This unblocks DHCP and user-level networking in virtualized test runs.

  • Bug Fixes

    • Set CONFIG_PACKET=y so tools using raw packet sockets (e.g., DHCP) work.
    • Guard minislirp clean to avoid errors when the dir is missing.
  • Dependencies

    • Bump Buildroot to 2025.02.x in build-image.sh.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 3 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="Makefile">

<violation number="1" location="Makefile:254">
When VIRTIONET is disabled, MINISLIRP_DIR is unset so this check becomes `/src`; on systems with that folder it will execute `make -C /src clean`, touching the wrong project. Please guard against empty MINISLIRP_DIR before testing the directory.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Without CONFIG_PACKET, the kernel refuses AF_PACKET sockets, so those
utilities can't run. For user-level networking in virtualized setups
especially when the test harness relies on DHCP. Thus, we should enable
CONFIG_PACKET (built-in or module) in the guest kernel.
@jserv jserv merged commit 3a34b41 into master Oct 27, 2025
10 checks passed
@jserv jserv deleted the enable-packet branch October 27, 2025 13:22
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