DragonFlyBSD Kernel Audit
DF-0417 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0417 build script (run as root on the DragonFly guest)
set -e
cd "$(dirname "$0")"
# ndflagset: set ND6_IFF_ACCEPT_RTADV on an interface (the global sysctl only
# takes effect at interface-attach time; this sets the live per-iface flag).
cc -O2 -o ndflagset ndflagset.c
# ra_race_mt: multi-threaded RA flood (tap0 injection) driving the create/delete
#   race against defrtrlist_update().  Unicasts RAs at the tap's own LLA because
#   tap0 does not join ff02::1 on this guest.
cc -O2 -pthread -o ra_race_mt ra_race_mt.c
echo "built: ndflagset ra_race_mt"