mirror of
https://github.com/pi-hole/FTL.git
synced 2026-07-08 16:33:45 +01:00
c32035d2fa11ed1ea1d1eb3943fa33db02059c9e
getMACVendor() truncated the address to the 24-bit OUI (XX:YY:ZZ) and matched that alone. Many OUIs are sub-divided into smaller MA-M (/28) and MA-S / IAB (/36) assignments whose 24-bit prefix resolves only to "IEEE Registration Authority" (or to no row at all) - so those devices showed a blank/useless hardware vendor. The macvendor table already stores these finer assignments in Wireshark manuf form (e.g. "34:E1:D1:80/28", "00:1B:C5:00:00/36"), so no database change is needed: reconstruct the candidate /24, /28 and /36 keys from the queried MAC in SQL and let the longest match win. Existing /24 keys are matched unchanged, so this is purely additive - no generator change, no DB rebuild, no transition. Add a BATS test seeding MA-L/MA-M/MA-S rows that asserts each resolves, that two devices under the same 24-bit parent resolve independently, and that an unknown OUI yields no match. Signed-off-by: RamSet <ramset@gmail.com>
Network-wide ad blocking via your own Linux hardware
FTLDNS (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.
- Fast: stats are read directly from memory by coupling our codebase closely with
dnsmasq - Versatile: upstream changes to
dnsmasqcan quickly be merged in without much conflict - Lightweight: runs smoothly with minimal hardware and software requirements such as Raspberry Pi Zero
- Interactive: our API can be used to interface with your projects
- Insightful: stats normally reserved inside of
dnsmasqare made available so you can see what's really happening on your network
Official documentation
The official FTLDNS documentation can be found here.
Installation
FTLDNS (pihole-FTL) is automatically installed when installing Pi-hole.
IMPORTANT
FTLDNS will disable any existing installations of
dnsmasq. This is because FTLDNS isdnsmasq+ Pi-hole's code, so both cannot run simultaneously.
Languages
C
96.9%
C++
1.1%
Python
0.9%
Shell
0.7%
CMake
0.3%