Red Hat Bugzilla – Bug 243250
Invalid network mask input in the manual TCP/IP configuration dialog of the loader
Last modified: 2007-11-30 17:12:06 EST
Description of problem:
The message at the top of the "Manual TCP/IP Configuration" dialog in the
Anaconda loader states that both "dotted-quad netmask or the CIDR-style prefix
are acceptable". Never the less, when a network mask is specified in the field,
when leaving it an "Invalid Prefix" error message appears, stating that "prefix
must be between 1 and 32 for IPv4 networks". The network mask is used without
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get to the "Manual TCP/IP Configuration" dialog.
2. Enter network mask (not prefix) in the mask/prefix field
3. Leave the field by pressing tab.
The network mask is used without problems but the error message states that it
is not a valid input.
Both network prefix and mask should be valid input.
Traced the problem to line 96 in loader2/net.c
When a network mask is specified with the kernel command line
parameter "netmask" it is used as a default value in the "Manual TCP/IP
Configuartion" dialog. When a prefix/CIDR is specified it is not used as a
default value. This is expected but inconveniet behaviour.
Created attachment 156560 [details]
Error message when network mask and not prefix is entered
Fixed in rawhide. Thanks for the report.