When we harvest all tcp connections to kill off after a takeip/releaseip event we...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 20 Aug 2008 02:50:50 +0000 (12:50 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 20 Aug 2008 02:50:50 +0000 (12:50 +1000)
config/functions

index 36f0e9e05e0d7061e8705551e04c26eeb6dd1ded..2c744d0c068706621f577911220cf916a0227667 100644 (file)
@@ -224,6 +224,7 @@ kill_tcp_connections() {
     _killcount=0
     connfile="$CTDB_BASE/state/connections.$_IP"
     netstat -tn |egrep "^tcp.*[[:space:]]+$_IP:.*ESTABLISHED" | awk '{print $4" "$5}' > $connfile
+    netstat -tn |egrep "^tcp.*[[:space:]]+::ffff:$_IP:.*ESTABLISHED" | awk '{print $4" "$5}' >> $connfile
 
     while read dest src; do
        srcip=`echo $src | sed -e "s/:[^:]*$//"`