Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161112 Details for
Bug 250942
IPv6 setup: fix default IPv6 address to IPV6ADDR in case of IPV6ADDR_SECONDARIES are used
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Different method, depending on used kernel version
ifup-ipv6.preferIPV6ADDR.diff (text/plain), 1.29 KB, created by
Peter Bieringer
on 2007-08-11 09:52:05 UTC
(
hide
)
Description:
Different method, depending on used kernel version
Filename:
MIME Type:
Creator:
Peter Bieringer
Created:
2007-08-11 09:52:05 UTC
Size:
1.29 KB
patch
obsolete
>--- rh-initscripts-cvs/initscripts/sysconfig/network-scripts/ifup-ipv6 2007-08-05 15:28:32.000000000 +0200 >+++ initscripts-ipv6/common.stripped/etc/sysconfig/network-scripts/ifup-ipv6 2007-08-11 11:39:00.000000000 +0200 >@@ -1,4 +1,4 @@ >-#!/bin/sh >+#!/bin/bash > # > # ifup-ipv6 > # >@@ -83,8 +88,26 @@ > exit 1 > fi > >+# Get lernel version >+uname_r="`uname -r`" >+kversion=${uname_r/-*} >+i=1 >+for p in ${kversion//./ }; do >+ kversion_part[i]=$p >+ i=$[ $i + 1 ] >+done >+ >+# Set flags depending on kernel version >+# at least kernel <= 2.6.22 uses last added IPv6 address as default one >+if [ ${kversion_part[1]} -ge 2 -a ${kversion_part[2]} -ge 6 -a ${kversion_part[3]} -gt 22 ]; then >+ # TODO: update this after each minor kernel version update, if behavior is still the same >+ ipv6_addr_reverse=0 >+else >+ ipv6_addr_reverse=1 >+fi >+ > # Setup IPv6 address on specified interface >-if [ -n "$IPV6ADDR" ]; then >+if [ -n "$IPV6ADDR" -a $ipv6_addr_reverse -eq 0 ]; then > ipv6_add_addr_on_device $DEVICE $IPV6ADDR || exit 1 > fi > >@@ -139,6 +214,9 @@ > ipv6_add_addr_on_device $DEVICE $ipv6addr > done > fi >+if [ -n "$IPV6ADDR" -a $ipv6_addr_reverse -ne 0 ]; then >+ ipv6_add_addr_on_device $DEVICE $IPV6ADDR || exit 1 >+fi > > # Enable IPv6 RFC3041 privacy extensions if desired > if [ "$IPV6_PRIVACY" = "rfc3041" ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250942
:
160718
| 161112