Subject: (ngtrans) Patch for BIND9 test script

From: "Robert Zilbauer" <[email-masked]>
Date: Wed, 14 Feb 2001 13:48:27 -0800

My apologies if this isn't the proper forum for this. Hopefully, though,
someone will find it useful. The script "ifconfig.sh" (in <top level BIND
source directory>/bin/tests/system) is used to set up several virtual
interfaces for use in testing BIND after compilation. As of BIND 9.1.1rc2,
this script doesn't work for Solaris 8 (Intel). Also, it doesn't do exactly
what it's supposed to do for Solaris 8 (Sparc) when bringing down the
virtual interfaces.

The following patch fixes these issues. These changes have been submitted to
the maintainers of the BIND code and will be rolled into the next release
(they didn't make it into 9.1.1).

*** bin/tests/system/ifconfig.sh        Wed Feb 14 12:33:25 2001
--- bin/tests/system/ifconfig.sh.FIX    Wed Feb 14 12:21:42 2001
***************
*** 44,49 ****
--- 44,53 ----
                        ifconfig lo0:$ns plumb
                        ifconfig lo0:$ns 10.53.0.$ns up
                        ;;
+                   *-pc-solaris2.8)
+                       ifconfig lo0:$ns plumb
+                       ifconfig lo0:$ns 10.53.0.$ns up
+                       ;;
                    *-pc-linux-gnu)
                        ifconfig lo:$ns 10.53.0.$ns up netmask 255.255.255.0
                        ;;
***************
*** 87,92 ****
--- 91,101 ----
                        ;;
                    *-sun-solaris2.8)
                        ifconfig lo0:$ns 10.53.0.$ns down
+                       ifconfig lo0:$ns unplumb
+                       ;;
+                   *-pc-solaris2.8)
+                       ifconfig lo0:$ns 10.53.0.$ns down
+                       ifconfig lo0:$ns unplumb
                        ;;
                    *-pc-linux-gnu)
                        ifconfig lo:$ns 10.53.0.$ns down

----
Robert C. Zilbauer, Jr.                   Systems Engineering Lead
Zama Networks, Inc. // 12101 International Blvd., Seattle WA 98168

      "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."