Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81119 - baselayout: netmask2cidr returns wrong results (helpers.d/functions)
Summary: baselayout: netmask2cidr returns wrong results (helpers.d/functions)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-02-07 07:29 UTC by Benoit Boissinot
Modified: 2005-03-10 13:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix netmask2cidr (baselayout.patch,484 bytes, patch)
2005-02-07 07:29 UTC, Benoit Boissinot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit Boissinot 2005-02-07 07:29:21 UTC
The function netmask2cidr is false. A patch that corrects the function follow.

Reproducible: Always
Steps to Reproduce:
1. $ . /lib/rcscripts/net.modules.d/helpers.d/functions
2. $ netmask2cidr 255.255.254.0

Actual Results:  
7 (whereas the correct result is 23)

Expected Results:  
23
Comment 1 Benoit Boissinot 2005-02-07 07:29:54 UTC
Created attachment 50619 [details, diff]
fix netmask2cidr
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-02-07 09:35:54 UTC
Patch accepted - applied to CVS

Will be in baselayout-1.11.10

Thanks!
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-03-10 13:17:29 UTC
baselayout-1.11.10 is out