[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] Loopback and SunOS in IPaddr
From: Horms <horms () verge ! net ! au>
Date: 2004-04-27 10:54:56
Message-ID: 20040427105454.GA3786 () verge ! net ! au
[Download RAW message or body]
Hi,
I am curious to know why the recent patches to IPaddr.in
to support SunOS include handling for the loopback interfaces.
The special loopback behaviour is a work around so that
IPaddr can do the right thing when used in conjunction
with LVS (www.linuxvirtualserver.org) in some situations.
Obviously LVS does not run on SunOS (it is a patch to the Linux Kernel).
Is there actually a need for SunOS to handle this behaviour?
I propose the attached patch.
--
Horms
["IPaddr.loopback.sunos.patch" (text/plain)]
Index: IPaddr.in
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/resource.d/IPaddr.in,v
retrieving revision 1.53
diff -u -r1.53 IPaddr.in
--- IPaddr.in 19 Apr 2004 18:09:39 -0000 1.53
+++ IPaddr.in 27 Apr 2004 10:47:52 -0000
@@ -358,7 +359,7 @@
exit 0
fi;;
- Linux|SunOS)
+ Linux)
if [ -z "$IF" ]; then
: Requested interface not in use
exit 0
@@ -389,7 +390,7 @@
case $SYSTYPE in
*BSD) ;;
- Linux|SunOS)
+ Linux)
restore_loopback "$BASEIP"
# remove lock file...
rm -f "$VLDIR/$IF";;
@@ -521,7 +522,7 @@
SENDARPPIDFILE="$SENDARPPIDDIR/send_arp-$BASEIP"
case $SYSTYPE in
- Linux|SunOS)
+ Linux)
CURRENTIF=`find_interface "$BASEIP"`
case $CURRENTIF in
lo*)
@@ -594,7 +595,7 @@
echo "stopped"; return 3
fi;;
- Linux|SunOS)
+ Linux)
if
[ -z "$IF" ]
then
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic