Bug 31767 - IPv6: use route -n when grepping the output
Summary: IPv6: use route -n when grepping the output
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
(Show other bugs)
Version: 7.1
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-14 06:50 UTC by Pekka Savola
Modified: 2014-03-17 02:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-03-14 06:50:36 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Pekka Savola 2001-03-14 06:50:24 UTC
initscripts-5.75

If we grep 'route -A inet6 | grep ...' output, it might be a good idea to use route -n just in case to avoid possible
DNS lookups.

Like:

--- network-functions-ipv6      Mon Mar  5 23:06:59 2001
+++ network-functions-ipv6.new  Wed Mar 14 08:46:54 2001
@@ -393,7 +393,7 @@
                return 1
        fi
        # Get all IPv6 routes through given interface and remove them
-       LC_ALL=C route -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do
+       LC_ALL=C route -n -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do
                if [ "::$idtuall_tunnel" = "$nexthop" ]; then
                        if echo $flags | grep -v -q "A"; then
                                # Only non addrconf (automatic installed) routes should be removed
@@ -536,7 +536,7 @@
        fi
 
        # Get all IPv6 routes through given interface and remove them
-       LC_ALL=C route -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do
+       LC_ALL=C route -n -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do
                if [ "$idall_device" = "$iface" ]; then
                        if echo $flags | grep -v -q "A"; then
                                # Only non addrconf (automatic installed) routes should be removed

Comment 1 Bill Nottingham 2001-03-14 16:21:28 UTC
Fixed in CVS, will show up at some point.


Note You need to log in before you can comment on or make changes to this bug.