Bug 78052 - Broadcast address misscalculation for alias interfaces
Broadcast address misscalculation for alias interfaces
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-18 10:31 EST by Tarhon-Onu Victor
Modified: 2014-03-16 22:32 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-13 23:55:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tarhon-Onu Victor 2002-11-18 10:31:10 EST
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-13 23:55:20 EST
Changed in 7.03-1.

Note You need to log in before you can comment on or make changes to this bug.