imq / linuximq

Pseudo-driver for the intermediate queue device.
https://imq.github.io/
GNU General Public License v2.0
99 stars 51 forks source link

Fix the hang issue caused by IPv6 and restart interface #11

Closed gfreewind closed 9 years ago

gfreewind commented 9 years ago

Most easy way how to reproduce is: ip link set imq0 up ip link set imq1 up tc qdisc add dev imq0 root handle 1: htb tc qdisc add dev imq1 root handle 1: htb iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0 iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1 ip6tables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0 ip6tables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 1

ifconfig eth0 down ifconfig eth0 up

The crash issue is caused by the IPv6 rules