Bug 78052

Summary: Broadcast address misscalculation for alias interfaces
Product: [Retired] Red Hat Linux Reporter: Tarhon-Onu Victor <lsmituc>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: mitr, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-14 04:55:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tarhon-Onu Victor 2002-11-18 15:31:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823
Netscape/7.0

Description of problem:
If you do not specify BROADCAST= in config files for alias interfaces, the
broadcast address will be not recalculated if already specified in parent's
interface configuration file.
That's because ifup-aliases evaluates variable from parent interface's
configuration file (somewhere before the declaration of function ini_env()), and
if BROADCAST is already specified in $PARENTCONFIG, a variable default_BROADCAST
is set with parent interface's broadcast, and then ini_env() which is performed
for every alais interface initializes BROADCAST with default_BROADCAST, so [ -z
"$BROADCAST" ] from function new_interface() will return false for every alias
interface, causing BROADCAST not to be recalculated.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. comment/delete BROADCAST=something line from a primary interface
configuration file, if any (line like this);
2. edit a secondary interface and do not specify the broadcast address.
3. ifup-alias ethX && ip add sh dev ethX:Y.
	

Actual Results:  The broadcast address will be that of the primary interface.

Expected Results:  The broadcast address should be calculated for every
secondary interface.



Additional info:

Comment 1 Bill Nottingham 2003-01-14 04:55:20 UTC
Changed in 7.03-1.