Add TAP/TUN network backend with bridge and host_ip support#124
Merged
RaymiiOrg merged 1 commit intoJul 10, 2026
Merged
Conversation
Adds a pluggable network backend, refactored existing libpcap to use it and then added TAP backend. Documented all options in es40.cfg example config.
Collaborator
|
I want to take a better look at this one but due to time constraints i'll probably can do that next week or so. |
RaymiiOrg
added a commit
to RaymiiOrg/axpbox
that referenced
this pull request
Jul 11, 2026
Adopt the CNetworkBackend abstraction (pcap + Linux TAP) from upstream while preserving the local networking features on top of it: - trace_packets tracing re-added in the DEC21143 RX/TX paths - NetworkFilter struct extends set_filter() with the full CSR6 semantics (PR/RA/PM/IF + broadcast + own-MAC fallback); the BPF builder moved from DEC21143::SetupFilter into CNetworkPcap - Windows run-time wpcap.dll loading (from System32\Npcap) moved into NetworkPcap and shared with the es40-cfg wizard, replacing the two duplicated copies; the exe no longer needs Npcap in WinPcap-compat mode - robust fgets-based adapter picker kept, now in CNetworkPcap::init - adapter descriptions kept in the configure wizard device list - new TAP config keys (type, host_ip, bridge, uplink, tap_create) added to the dec21143 config allow-list Authored-By: Claude Fable 5 <noreply@anthropic.com>
jbglaw
pushed a commit
to jbglaw/es40
that referenced
this pull request
Jul 25, 2026
Pull all libpcap code out of the Tulip emulator and place it into a "pcap" implementation. Also add a "tap" implementation that can work on Linux and *BSD. The initial patch was taken from lenticularis39/axpbox#124 and, afaict, was created by Claude AI. This is tested to work on Linux with a bridge. Need to test is on some BSD, and the pcap code is untested right now.
gdwnldsKSC
added a commit
to ES40-Emu/es40
that referenced
this pull request
Jul 25, 2026
* Abstract class for network support Pull all libpcap code out of the Tulip emulator and place it into a "pcap" implementation. Also add a "tap" implementation that can work on Linux and *BSD. The initial patch was taken from lenticularis39/axpbox#124 and, afaict, was created by Claude AI. This is tested to work on Linux with a bridge. Need to test is on some BSD, and the pcap code is untested right now. * Add NetworkBackend and NetworkPcap source files Added NetworkBackend.cpp and NetworkPcap.cpp to project. * update VS files * default to pcap if no selection made --------- Co-authored-by: Jan-Benedict Glaw <jbglaw@getslash.de> Co-authored-by: gdwnldsKSC <gary@kisaracorporation.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a pluggable network backend, refactored existing libpcap to use it and then added TAP backend.
Documented all options in es40.cfg example config.
This (partially) addresses #9