xref: /freebsd/tools/test/stress2/misc/multicast2.sh (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1#!/bin/sh
2
3# D19886 Fix numerous refcount bugs in multicast
4
5# Page fault in in6_pcbpurgeif0+0xc8 seen.
6# https://people.freebsd.org/~pho/stress/log/mmacy035.txt
7# Test scenario by mmacy
8
9# Fixed by r349507
10
11[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
12[ -x /usr/local/bin/mDNSResponderPosix ] ||
13    { echo "mDNSResponder not installed"; exit 0; }
14
15(cd ../testcases/swap; ./swap -t 2m -i 50 -v -h -l 100) &
16sleep 2
17
18service mdnsd onestart
19ifconfig vtnet0 delete 2>/dev/null
20ifconfig epair create
21ifconfig epair0a 0/24 up
22ifconfig epair0a destroy
23timeout 2m service mdnsd onestop
24
25while pkill swap; do :; done
26wait
27