git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f8b339
)
When we harvest all tcp connections to kill off after a takeip/releaseip event we...
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 20 Aug 2008 02:50:50 +0000
(12:50 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 20 Aug 2008 02:50:50 +0000
(12:50 +1000)
config/functions
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index 36f0e9e05e0d7061e8705551e04c26eeb6dd1ded..2c744d0c068706621f577911220cf916a0227667 100644
(file)
--- 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/:[^:]*$//"`