Return the matched VPN-provider hint if any egress field looks like a VPN provider/hosting ASN, else None.
(*fields)
| 791 | |
| 792 | |
| 793 | def do_arp_baseline(action='get'): |
| 794 | """Manage the trusted gateway IP->MAC baseline the spoof check compares |
| 795 | against. action='reset' clears it so the current binding is re-learned on |
| 796 | the next check (use after a legitimate router/gateway change).""" |
| 797 | with _arp_baseline_lock: |
| 798 | if action == 'reset': |
| 799 | _arp_baseline_save({}) |
| 800 | return {'success': True, 'reset': True, 'gateways': {}} |