Replaces LICENSE (GPLv3 -> AGPLv3) and prepends `SPDX-License-Identifier: AGPL-3.0-or-later` to every source file across decnet/, decnet_web/, tests/, scripts/, and tools/. Rationale: closes the GPLv3 ASP loophole so any party operating a modified DECNET as a network service must offer their modified source. Personal copyright (Samuel Paschuan) + inbound=outbound contributions make a future unilateral relicense infeasible. - LICENSE: full AGPL-3.0 text (gnu.org/licenses/agpl-3.0.txt) - COPYRIGHT: project copyright notice - tools/add_spdx_headers.py: idempotent header injector (shebang- and PEP 263-aware) Touches 1565 source files (.py, .ts, .tsx, .js, .jsx, .css, .sh). No behavior change; comments only.
29 lines
989 B
Python
29 lines
989 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Passive + active OS fingerprinting providers.
|
|
|
|
Consumed by the profiler's `sniffer_rollup` (and, longer-term, by a
|
|
dedicated prober pass). Each provider implements `base.Provider`: given
|
|
a dict of observed TCP/IP quirks (window, wscale, mss, options
|
|
signature, TTL, etc.), return a best-match OS label with confidence.
|
|
|
|
Layout mirrors `decnet/geoip/` and `decnet/bus/`: `base.py` defines the
|
|
protocol, `factory.py` is the only sanctioned accessor, and each
|
|
concrete source (p0f today, nmap-osdb / DECNET-observed later) lives in
|
|
its own subpackage. Don't import concrete provider classes directly —
|
|
use :func:`factory.get_provider` or :func:`factory.get_all_providers`.
|
|
"""
|
|
from decnet.prober.osfp.base import OsMatch, Provider
|
|
from decnet.prober.osfp.factory import (
|
|
get_all_providers,
|
|
get_provider,
|
|
reset_cache,
|
|
)
|
|
|
|
__all__ = [
|
|
"OsMatch",
|
|
"Provider",
|
|
"get_all_providers",
|
|
"get_provider",
|
|
"reset_cache",
|
|
]
|