~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/sqa/sqa_tcp_buffering/do.test -rwxr-xr-x 803 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

# This test makes sure Deadwood can handle pauses in the TCP stream
# upstream 

cat > dwood2rc << EOF
chroot_dir="$( pwd )"
ipv4_bind_addresses="127.0.0.2"
upstream_servers = {}
upstream_servers["."]="127.0.0.1"
recursive_acl="127.0.0.1/16"
tcp_listen=1
filter_rfc1918 = 0
EOF

export CC="cc"
export FLAGS="-O3"

make > /dev/null
../../src/Deadwood -f dwood2rc | grep -v version | sed 's/[(].*[)]//' &
./truncated 127.0.0.1 &
./show_packet_stdout 127.0.0.1 < dns.reply.txt.example.com > /dev/null &
#./show_packet_stdout 127.0.0.1 < dns.reply.txt.example.com &

sleep 3

askmara-tcp Atxt.example.com. 127.0.0.2

#./send_packet_stdin 127.0.0.2 < dns.query.txt.example.com | fmt -w 60

killall Deadwood
killall show_packet_stdout
killall truncated
rm dwood2rc
make clean > /dev/null
sleep 60