DF-0741 / build.sh
#!/bin/sh # build.sh — DF-0741 trigger # # Builds the userspace trigger that injects a short IPPROTO_MOBILE # packet to trip the bcopy underflow in gre_mobile_input. # # Run on the DragonFly guest as root (the trigger needs a raw socket # with IP_HDRINCL; setup of the gre-mobile tunnel also needs root). set -e cd "$(dirname "$0")" cc -O2 -Wall -o trigger trigger.c echo "BUILD_OK: trigger" ls -l trigger |