MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / getRSSIClass

Function getRSSIClass

web/scripts/ragnar_modern.js:9913–9918  ·  view source on GitHub ↗
(rssi)

Source from the content-addressed store, hash-verified

9911 'bpdu-flood': ['bg-red-950/60 border-red-800 text-red-300', '🛑 BPDU flood — spanning-tree reconvergence storm (DoS)'],
9912 'rogue-bridge': ['bg-red-950/60 border-red-800 text-red-300', '🛑 New STP bridge on the segment — unexpected switch / spoofed bridge'],
9913 'root-hijack': ['bg-red-950/60 border-red-800 text-red-300', '🛑 ROOT HIJACK — a superior BPDU is taking over the root bridge (L2 MITM)'],
9914 anomaly: ['bg-amber-950/50 border-amber-800 text-amber-300', '⚠ BPDU anomaly — field-sanity / MST / per-MSTI violation (see findings)'],
9915 unknown: ['bg-slate-800 border-slate-700 text-slate-400', '— Could not determine'],
9916};
9917const _STP_SEV_STYLE = { critical: 'text-red-300', high: 'text-red-300', medium: 'text-amber-300', low: 'text-sky-300', info: 'text-gray-400' };
9918function _stpFillIfaces() {
9919 const sel = document.getElementById('stp-iface');
9920 if (!sel || sel.dataset.filled === '1') return Promise.resolve();
9921 return fetchAPI('/api/net/interfaces').then(x => {

Callers 1

displayBluetoothDevicesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected