1a6f68034SDavid S. Miller#!/bin/sh 2a6f68034SDavid S. Miller 3a6f68034SDavid S. Millerif [ $(id -u) != 0 ]; then 4a6f68034SDavid S. Miller echo $msg must be run as root >&2 5a6f68034SDavid S. Miller exit 0 6a6f68034SDavid S. Millerfi 7a6f68034SDavid S. Miller 8a6f68034SDavid S. Millerecho "--------------------" 9a6f68034SDavid S. Millerecho "running psock_fanout test" 10a6f68034SDavid S. Millerecho "--------------------" 11a6f68034SDavid S. Miller./psock_fanout 12a6f68034SDavid S. Millerif [ $? -ne 0 ]; then 13a6f68034SDavid S. Miller echo "[FAIL]" 14a6f68034SDavid S. Millerelse 15a6f68034SDavid S. Miller echo "[PASS]" 16a6f68034SDavid S. Millerfi 1723a95442SDaniel Borkmann 1823a95442SDaniel Borkmannecho "--------------------" 1923a95442SDaniel Borkmannecho "running psock_tpacket test" 2023a95442SDaniel Borkmannecho "--------------------" 2123a95442SDaniel Borkmann./psock_tpacket 2223a95442SDaniel Borkmannif [ $? -ne 0 ]; then 2323a95442SDaniel Borkmann echo "[FAIL]" 2423a95442SDaniel Borkmannelse 2523a95442SDaniel Borkmann echo "[PASS]" 2623a95442SDaniel Borkmannfi 27