[SCM] CTDB repository - branch ipv6-test updated -
293d12a40501320a21efaf592b8f20e8590a5197
Ronnie Sahlberg
sahlberg at samba.org
Wed Aug 20 02:56:46 GMT 2008
The branch, ipv6-test has been updated
via 293d12a40501320a21efaf592b8f20e8590a5197 (commit)
from 2f8b33948e395228cbac3450c0c684e49069abf0 (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=ipv6-test
- Log -----------------------------------------------------------------
commit 293d12a40501320a21efaf592b8f20e8590a5197
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Aug 20 12:50:50 2008 +1000
When we harvest all tcp connections to kill off after a takeip/releaseip event we must also harvest the ipv4 connections which may be presented in ::ff:xxxx:xxxx form by netstat
-----------------------------------------------------------------------
Summary of changes:
config/functions | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/config/functions b/config/functions
index 36f0e9e..2c744d0 100644
--- a/config/functions
+++ b/config/functions
@@ -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/:[^:]*$//"`
--
CTDB repository
More information about the samba-cvs
mailing list