Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93237 - Wrong route added when using x.x.x.x/# format in conf.d/net
Summary: Wrong route added when using x.x.x.x/# format in conf.d/net
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-05-19 11:33 UTC by Jan Vansteenkiste
Modified: 2005-05-25 03:05 UTC (History)
1 user (show)

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


Attachments
fixes CIDR with ifconfig (ifconfig.patch,825 bytes, patch)
2005-05-19 17:49 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vansteenkiste 2005-05-19 11:33:08 UTC
When using 
config_eth1=( "10.0.1.2/24" ) the wrong route is added.

Reproducible: Always
Steps to Reproduce:
1. Set conf.d/net using ip.ip.ip.ip/netmask format
2. Restart your network interface


Actual Results:  
The route is wrongly added.
The netmask is not well translated using the short format.

Expected Results:  
Convert the netmask and add the proper one

Can be resolved by using  'netmask 255.xxx.xxx.0'  in your config files.
Comment 1 SpanKY gentoo-dev 2005-05-19 12:04:22 UTC
confirmed in baselayout-1.11.12-r1
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-05-19 17:49:17 UTC
Created attachment 59337 [details, diff]
fixes CIDR with ifconfig

OK - ifconfig does not understand CIDR even though it accepts it - silly.

Fixed in CVS
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-05-25 03:05:33 UTC
fixed in baselayout-1.11.12-r2