Import source code for dummynet innode emulation.
[ipfw.git] / ipfw / add_rules
1 #!/bin/bash
2
3 PRG=./ipfw
4
5 myfun() {
6         $PRG add 10 count icmp from any to 131.114.9.128
7         $PRG add 20 count icmp from 131.114.9.128 to any
8         $PRG add 20 count icmp from any to 131.114.9.130
9         $PRG add 30 count icmp from 131.114.9.130 to any
10         $PRG add 40 count icmp from any to 131.114.9.129
11         $PRG add 50 count icmp from 131.114.9.129 to any
12         $PRG add 60 count icmp from 131.114.9.236 to any
13         sleep 1
14         $PRG del 10
15         $PRG del 20
16         $PRG del 20
17         $PRG del 30
18         $PRG del 40
19         $PRG del 50
20         $PRG del 60
21 }
22
23 for ((i=0;i<100;i++)) ; do
24         myfun
25 done