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 873361 Details for
Bug 1075448
ifup-ipv6 should disable ipv6 on interface with IPV6INIT=no
[?]
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]
Patch to disable ipv6 on interface with IPV6INIT=no
initscripts-ipv6-enable-disable.patch (text/plain), 1.33 KB, created by
Tuomo Soini
on 2014-03-12 07:31:02 UTC
(
hide
)
Description:
Patch to disable ipv6 on interface with IPV6INIT=no
Filename:
MIME Type:
Creator:
Tuomo Soini
Created:
2014-03-12 07:31:02 UTC
Size:
1.33 KB
patch
obsolete
>diff -up initscripts-9.49.7/sysconfig/network-scripts/ifup-ipv6.ipv6-enable-disable initscripts-9.49.7/sysconfig/network-scripts/ifup-ipv6 >--- initscripts-9.49.7/sysconfig/network-scripts/ifup-ipv6.ipv6-enable-disable 2013-11-05 18:23:08.000000000 +0200 >+++ initscripts-9.49.7/sysconfig/network-scripts/ifup-ipv6 2014-03-11 12:20:06.870863360 +0200 >@@ -1,4 +1,4 @@ >-#!/bin/sh >+#!/bin/bash > # > # ifup-ipv6 > # >@@ -65,9 +65,6 @@ source_config > REALDEVICE=${DEVICE%%:*} > DEVICE=$REALDEVICE > >-# Test whether IPv6 configuration is disabled for this interface >-[[ "$IPV6INIT" = [nN0]* ]] && exit 0 >- > [ -f /etc/sysconfig/network-scripts/network-functions-ipv6 ] || exit 1 > . /etc/sysconfig/network-scripts/network-functions-ipv6 > >@@ -82,6 +79,18 @@ if [ $? != 0 -a $? != 11 ]; then > exit 1 > fi > >+# Test whether IPv6 should be disabled on this device >+if [[ "$IPV6INIT" = [nN0]* ]]; then >+ /sbin/sysctl -e -w net.ipv6.conf.${SYSCTLDEVICE}.disable_ipv6=1 >/dev/null 2>&1 >+ # ipv6 was disabled, we need to exit now. >+ exit 1 >+else >+ # Default is to enable IPv6 >+ /sbin/sysctl -e -w net.ipv6.conf.${SYSCTLDEVICE}.disable_ipv6=0 >/dev/null 2>&1 >+ # device doesn't exist or other problem occurs >+ [ $? -gt 0 ] && exit 1 >+fi >+ > # Setup IPv6 address on specified interface > if [ -n "$IPV6ADDR" ]; then > ipv6_add_addr_on_device $DEVICE $IPV6ADDR || exit 1
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 1075448
: 873361