]> git.saurik.com Git - apple/network_cmds.git/blobdiff - ip6conf.tproj/ip6config
network_cmds-176.tar.gz
[apple/network_cmds.git] / ip6conf.tproj / ip6config
index 5a8aaf27c18f608ff948d0afa23b7781e28f40a0..729427534b1d1b9b279bf76195a58488c623a6af 100644 (file)
@@ -54,7 +54,9 @@ sub do_6to4_setup
        # Take the requested interface from the user
        # Figure out addressing, etc.
        #
-       $localadr4 = `ifconfig $ARGV[1] inet | grep inet`;
+       $localadr4 = `ifconfig $ARGV[1] inet | grep inet | grep -v "10.*.*.*"| \
+                       grep -v "172.[^16-31].*.*" | grep -v "192.168.*.*" | \
+                       grep -v "169.254.*.*" | grep -v alias`;
        $localadr4 =~ s/^.*inet\s*//;
        $localadr4 =~ s/\s.*$//;
        chomp($localadr4);