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.
22 lines
865 B
Go
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() }
|