Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 59337 Details for
Bug 93237
Wrong route added when using x.x.x.x/# format in conf.d/net
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes CIDR with ifconfig
ifconfig.patch (text/plain), 825 bytes, created by
Roy Marples (RETIRED)
on 2005-05-19 17:49:17 UTC
(
hide
)
Description:
fixes CIDR with ifconfig
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-05-19 17:49:17 UTC
Size:
825 bytes
patch
obsolete
>Index: net-scripts/net.modules.d/ifconfig >=================================================================== >RCS file: /var/cvsroot/gentoo-src/rc-scripts/net-scripts/net.modules.d/ifconfig,v >retrieving revision 1.21.4.8 >diff -u -B -r1.21.4.8 ifconfig >--- net-scripts/net.modules.d/ifconfig 23 Mar 2005 14:39:11 -0000 1.21.4.8 >+++ net-scripts/net.modules.d/ifconfig 20 May 2005 00:46:41 -0000 >@@ -318,6 +318,13 @@ > # Support iproute2 style config where possible > config=( "${config[@]//brd/broadcast}" ) > config=( "${config[@]//peer/pointtopoint}" ) >+ >+ local cidr="${config[0]##*/}" >+ if [[ -n ${cidr} ]]; then >+ # ifconfig is very silly with CIDR addresses >+ local nm=$( cidr2netmask "${cidr}" ) >+ config[0]="${config[0]%%/*} netmask ${nm}" >+ fi > fi > > ifconfig ${iface} ${config[@]} &>${devnull}
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 93237
: 59337