#!/bin/sh
# DF-0666 — re-confirm dead-code + show the netgraph7 rewrite has the fix.
set -e
cd "$(dirname "$0")"
echo "[DF-0666] grep conf/files for ng_device:"
grep -n "ng_device" ../../sys/conf/files || true
echo
echo "[DF-0666] cited bug (dead file):"
grep -nA1 "m = m_devget\|NG_SEND_DATA_ONLY(error, connection" ../../sys/netgraph/ng_device.c | head -8
echo
echo "[DF-0666] netgraph7 rewrite (has the missing guards):"
grep -nA1 "uio->uio_resid == 0\|m_uiotombuf(uio" ../../sys/netgraph7/ng_device.c | head -8
echo
echo "[DF-0666] verdict: NOT REPRODUCED (dead code). See VERDICT.md."
