Files
Reims-Go/internal/packetbridge/pcap_other.go
T
root 403e2aeac0 fix(network): secure Npcap channels and enable bidirectional host access
Require AF_UNIX for bridge and management channels and reject legacy TCP restore paths before opening resources. Add per-adapter host delivery, Npcap receive injection, and checksum and segmentation handling for Ethernet and WLAN IPv4/IPv6 traffic.

Validation: full CI, targeted packetbridge/app tests, two live macOS VMs over Ethernet and WLAN, and Windows Firewall allow/block/default-deny checks with SMB 3.02 negotiation. Authenticated SMB file access and physical-display suspend/resume remain unverified.
2026-12-02 16:28:46 +08:00

22 lines
865 B
Go

//go:build !windows
package packetbridge
import (
"context"
"github.com/Nwflower/reims-go/internal/networkmsg"
)
type capture struct{}
func Available() error { return networkmsg.Error("packet_windows_only", nil) }
func openCapture(string, string, bool) (*capture, error) { return nil, Available() }
func (*capture) wait(context.Context) error { return Available() }
func (*capture) read() ([]byte, error) { return nil, Available() }
func (*capture) write([]byte) error { return Available() }
func (*capture) writeHost([]byte) error { return Available() }
func (*capture) signalClose() {}
func (*capture) close() {}
func (*capture) reopen() error { return Available() }