Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 29243 Details for
Bug 34653
Modified init.d/net.eth0 && conf.d/net to support static IPv6 network
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] net.eth0 gateway6+bugfixes updated for baselayout 1.8.8
net.eth0-patch_burN-shadow-1.diff (text/plain), 1.75 KB, created by
Eric Shattow
on 2004-04-13 19:55:44 UTC
(
hide
)
Description:
[PATCH] net.eth0 gateway6+bugfixes updated for baselayout 1.8.8
Filename:
MIME Type:
Creator:
Eric Shattow
Created:
2004-04-13 19:55:44 UTC
Size:
1.75 KB
patch
obsolete
>--- net.eth0~orig 2004-04-13 15:10:42.000000000 -0500 >+++ net.eth0 2004-04-13 21:50:27.000000000 -0500 >@@ -162,6 +162,36 @@ > } > fi > fi >+ # Set default route if applicable to this interface on inet6 >+ if [[ ${gateway6} == ${IFACE}/* ]]; then >+ local ogw6=$(/bin/netstat -A inet6 -rn | awk '$1 == "::/0" {print $2}' | head -n1) >+ local gw6=${gateway6#*/} >+ if [[ ${ogw6} != ${gw6} ]]; then >+ ebegin " Setting default IPv6 gateway ($gw6)" >+ >+ # First delete any existing route if it was setup by kernel... >+ /sbin/route -A inet6 del default dev ${IFACE} &>${devnull} >+ >+ # Second delete old gateway if it was set... >+ /sbin/route -A inet6 del default gw ${ogw6} &>${devnull} >+ >+ # Third add our new default gateway >+ /sbin/route -A inet6 add default gw ${gw6} >${devnull} >+ eend $? || { >+ true # need to have some command in here >+ # Note: This originally called stop, which is obviously >+ # wrong since it's calling with a local version of IFACE. >+ # The below code works correctly to abort configuration of >+ # the interface, but is commented because we're assuming >+ # that default route failure should not cause the interface >+ # to be unconfigured. >+ #local error=$? >+ #ewarn "Aborting configuration of ${IFACE}" >+ #iface_stop ${IFACE} >+ #return ${error} >+ } >+ fi >+ fi > > # Enabling rp_filter causes wacky packets to be auto-dropped by > # the kernel. Note that we only do this if it is not set via >@@ -198,7 +228,7 @@ > for i in ${aliases} ${IFACE}; do > > # Delete all the inet6 addresses for this interface >- inet6="$(ifconfig ${i} | awk '$1 == "inet6" {print $2}')" >+ inet6="$(ifconfig ${i} | awk '$1 == "inet6" {print $3}')" > if [[ -n ${inet6} ]]; then > einfo " Removing inet6 addresses" > for x in ${inet6}; do
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 34653
: 29243