mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 16:02:17 +00:00
Replace third_party/vowifi-go with the reverse-engineered rewrite that matches the v1.5.5 binary's actual vowifi-go (internal/vowifi/imscore + internal/vowifi/voice), and adapt the host code to its API: - device: modemAdapter/qmiModemAdapter implement runtimehost.Modem (Capabilities, IMSIdentityProvider) and identity.Access; SetLogger uses slog.Default() - api: GetSMSDeliveryStatus passes ctx - platform shims so the Linux-targeted code compiles on macOS for tests: SO_BINDTODEVICE consts (netprobe/proxy/qmi), qmi control-device-holder stub, udev build-tag + no-op stub - test modems implement the runtimehost.Modem interface Result: 25 packages pass on macOS; only internal/web + cmd/vohive fail on the pre-existing missing web dist assets (//go:embed all:dist). The vowifi-go module itself builds on both macOS and Linux. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
9 lines
148 B
Go
9 lines
148 B
Go
//go:build linux
|
|
|
|
package netprobe
|
|
|
|
import "syscall"
|
|
|
|
// soBindToDevice is SO_BINDTODEVICE on Linux.
|
|
const soBindToDevice = syscall.SO_BINDTODEVICE
|