Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140975 Details for
Bug 205894
net.eth0 improperly adds default gateway
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix default route
ifconfig.patch (text/plain), 967 bytes, created by
Roy Marples
on 2008-01-15 11:47:16 UTC
(
hide
)
Description:
Fix default route
Filename:
MIME Type:
Creator:
Roy Marples
Created:
2008-01-15 11:47:16 UTC
Size:
967 bytes
patch
obsolete
>--- ifconfig.sh 2008-01-15 11:38:33.000000000 +0000 >+++ ifconfig.sh 2008-01-15 11:43:43.000000000 +0000 >@@ -362,21 +362,13 @@ > [[ ${x} != *"-A inet6"* ]] && x="-A inet6 ${x}" > x="${x// -net / }" > else >- # Work out if we're a host or a net if not told >- if [[ " ${x} " != *" -net "* && " ${x} " != *" -host "* ]] ; then >- y="${x% *}" >- y="${y##* }" >- if [[ ${x} == *" netmask "* ]] ; then >- x="-net ${x}" >- elif [[ ${y} == *.*.*.*/32 ]] ; then >- x="-host ${x}" >- elif [[ ${y} == *.*.*.*/* || ${y} == "default" || ${y} == "0.0.0.0" ]] ; then >- x="-net ${x}" >- else >- # Given the lack of a netmask, we assume a host >- x="-host ${x}" >- fi >- fi >+ case ${x} in >+ -net" "*|-host" "*);; >+ *" "netmask" "*) x="-net ${x}";; >+ *.*.*.*/32*) x="-host ${x}";; >+ *.*.*.*/*|0.0.0.0" "*|default" "*) x="-net ${x}";; >+ *) x="-host ${x}";; >+ esac > fi > > # Add a metric if we don't have one
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 205894
: 140975