Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 331878 Details for
Bug 446606
sys-apps/openrc: Routing policy rules need to be set before routes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This patch moves setting IP policy rules from post_start to pre_start
earlier_ip_pr_support.patch (text/plain), 1.07 KB, created by
Thomas Deutschmann (RETIRED)
on 2012-12-09 14:29:43 UTC
(
hide
)
Description:
This patch moves setting IP policy rules from post_start to pre_start
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2012-12-09 14:29:43 UTC
Size:
1.07 KB
patch
obsolete
>--- openrc-0.11.6/net/iproute2.sh 2012-11-30 19:07:33.000000000 +0100 >+++ openrc-0.11.6/net/iproute2.sh.new 2012-12-08 16:59:59.000000000 +0100 >@@ -280,22 +280,7 @@ > local len= > eval len=\$txqueuelen_${IFVAR} > [ -n "${len}" ] && ip link set dev "${IFACE}" txqueuelen "${len}" >- >- return 0 >-} >- >-_iproute2_ipv6_tentative() >-{ >- # Only check tentative when we have a carrier. >- _has_carrier || return 1 >- LC_ALL=C ip addr show dev "${IFACE}" | \ >- grep -q "^[[:space:]]*inet6 .* tentative" >-} >- >-iproute2_post_start() >-{ >- local n=5 >- >+ > # Kernel may not have IP built in > if [ -e /proc/net/route ]; then > local rules="$(_get_array "rules_${IFVAR}")" >@@ -326,6 +311,21 @@ > ip -6 route flush table cache dev "${IFACE}" > fi > >+ return 0 >+} >+ >+_iproute2_ipv6_tentative() >+{ >+ # Only check tentative when we have a carrier. >+ _has_carrier || return 1 >+ LC_ALL=C ip addr show dev "${IFACE}" | \ >+ grep -q "^[[:space:]]*inet6 .* tentative" >+} >+ >+iproute2_post_start() >+{ >+ local n=5 >+ > if _iproute2_ipv6_tentative; then > ebegin "Waiting for IPv6 addresses" > while [ $n -ge 0 ]; 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 446606
: 331878