Skip to content

Fix loopback interface. Add new tests, remove deprecated tests.#102

Merged
gasbytes merged 8 commits intowolfSSL:masterfrom
danielinux:refactor-loopback
Apr 16, 2026
Merged

Fix loopback interface. Add new tests, remove deprecated tests.#102
gasbytes merged 8 commits intowolfSSL:masterfrom
danielinux:refactor-loopback

Conversation

@danielinux
Copy link
Copy Markdown
Member

  • minor fixes: exclude posix headers from non-posix builds, remove DEBUG defined by default in wolfip.h

Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #102

Scan targets checked: wolfip-bugs, wolfip-compliance, wolfip-defaults, wolfip-mutation, wolfip-proptest, wolfip-src

Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/wolfip.c
Comment thread src/wolfip.c
Comment thread src/wolfip.c
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates wolfIP’s loopback device behavior and related CI/tests, while also tightening platform-specific includes and debug defaults.

Changes:

  • Reworked loopback to buffer outgoing IP payloads and deliver them via a new loopback poll() path instead of immediate in-send receive.
  • Added/updated unit tests and regression tests around the new loopback behavior; removed reliance on a deprecated loopback test.
  • Stopped defining DEBUG by default and gated POSIX-only includes; added a CI smoke ping against 127.0.0.1.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
wolfip.h Removes default DEBUG define to avoid debug-on-by-default builds.
src/wolfip.c Adds loopback buffering + poll() implementation; adjusts debug include gating; wraps POSIX headers.
src/test/unit/unit_tests_proto.c Adds loopback poll() tests and updates loopback regression expectations.
src/test/unit/unit.c Registers new unit tests and replaces the deprecated regression test.
config.h Enables loopback by default.
.github/workflows/linux.yml Adds a loopback ICMP smoke test (no TUN/TAP).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/wolfip.c Outdated
Comment thread src/test/unit/unit_tests_proto.c
Comment thread config.h Outdated
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #102

Scan targets checked: wolfip-bugs, wolfip-compliance, wolfip-defaults, wolfip-mutation, wolfip-proptest, wolfip-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/wolfip.c
Comment thread src/test/unit/unit_tests_proto.c Outdated
Comment thread src/wolfip.c Outdated
@gasbytes gasbytes assigned danielinux and unassigned gasbytes Apr 15, 2026
@danielinux danielinux requested review from Copilot and gasbytes April 15, 2026 12:45
@danielinux danielinux assigned gasbytes and unassigned danielinux Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread wolfip.h
Comment thread src/wolfip.c Outdated
Comment thread src/wolfip.c
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/wolfip.c
Comment thread src/test/test_wolfguard_loopback.c Outdated
Comment thread src/test/test_wolfguard_loopback.c Outdated
Comment thread wolfip.h
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #102

Scan targets checked: wolfip-bugs, wolfip-compliance, wolfip-defaults, wolfip-mutation, wolfip-proptest, wolfip-src

Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/wolfip.c
Comment thread src/wolfip.c
Copilot AI review requested due to automatic review settings April 15, 2026 16:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/wolfip.c
Comment thread src/wolfip.c Outdated
Comment thread config.h Outdated
Comment thread src/wolfip.c
Comment thread src/wolfip.c
Comment thread src/wolfip.c
Comment thread src/wolfip.c
@gasbytes gasbytes merged commit 3092f6f into wolfSSL:master Apr 16, 2026
37 of 40 checks passed
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.

4 participants