lumeohq / onvif-rs

A native Rust ONVIF client library.
MIT License
114 stars 61 forks source link

Resolve MAC and vendor upon discovery #41

Closed DmitrySamoylov closed 4 years ago

DmitrySamoylov commented 4 years ago

Some cameras don't let us to obtain MAC address without auth. We need it to identify cameras though.

The idea is to take host from xaddr URI and resolve MAC using ARP

Vendor can be looked up by mac: https://github.com/flier/rust-manuf

DmitrySamoylov commented 4 years ago

MAC resolved from IP address is actually something not ONVIF-specific and hard to do right cross-platform. ARP lookup may require administrator privileges. So let's leave it to the user for now.