mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Introduce a second discovery module that passively listens for mDNS multicast announcements (224.0.0.251:5353) and feeds discovered devices into the existing devices/events/notifications pipeline, running in its own task alongside the ARP scanner. Since mDNS carries an IP and hostname but no MAC (the device key), the module resolves IP->MAC via the OS ARP cache with a targeted ARP-probe fallback. The advertised hostname is stored in a new optional `name` column on devices (blank for ARP-only devices); the single `update` writes `name` only when set so ARP rescans never clobber it. Device names are included in event/notification messages. Adds a GET /api/mdns_scanner/status endpoint (is_listening, devices_seen, last_device_seen_seconds_ago) wired into OpenAPI, an optional [mdns_scanner] config section, and the corresponding Nix module option. Also aligns the Nix module's stale `timings` section with the current `arp_scanner` schema. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
33 lines
968 B
TOML
33 lines
968 B
TOML
[package]
|
|
name = "oott"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
env_logger = "0.11.8"
|
|
log = "0.4.29"
|
|
pnet = "0.35.0"
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
rusqlite = { version = "0.38.0", features = ["bundled", "chrono"] }
|
|
rusqlite_migration = { version = "2.4.1", features = ["from-directory"] }
|
|
include_dir = "0.7.4"
|
|
chrono = {version = "0.4.43", features = ["serde"]}
|
|
pushover = "0.4.0"
|
|
config = "0.15.19"
|
|
lazy_static = "1.5.0"
|
|
duration-string = { version="0.5.3", features = ["serde"] }
|
|
clap = {version="4.5.54", features=["derive"]}
|
|
axum = "0.8.8"
|
|
tower-http = { version = "0.6.8", features = ["fs", "cors"] }
|
|
r2d2 = "0.8.10"
|
|
r2d2_sqlite = "0.32.0"
|
|
once_cell = "1.21.3"
|
|
tower = "0.5.3"
|
|
utoipa = { version = "5", features = ["axum_extras", "chrono"] }
|
|
utoipa-swagger-ui = { version = "9", features = ["axum"] }
|
|
simple-dns = "0.11.3"
|
|
socket2 = "0.6.4"
|