#!/bin/sh
# DF-0587 run: race scan_req vs vap-destroy on a wlan(4) vap.
#
# PRECONDITION: requires a wlan vap on a real (or faithfully emulated)
# IEEE 802.11 radio driver, e.g.:
#     ifconfig wlan0 create wlandev run0  # requires run(4) USB NIC
#
# This guest has no WiFi hardware, so this PoC cannot trigger here.
# On a real DragonFly system with a wlan vap, run as root:
#     sudo ./run.sh wlan0
set -e
cd "$(dirname "$0")"
IF="${1:-wlan0}"
echo "DF-0587: racing scan_req vs vap-destroy on $IF for 60s (need root + real wlan vap)..."
./race "$IF"
