[BusyBox 0000251]: broadcast address isn't recalculated if ifconfig of a network address with a non-standard netmask

bugs at busybox.net bugs at busybox.net
Thu Nov 23 13:23:18 UTC 2006


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=251 
====================================================================== 
Reported By:                perh
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   251
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             05-09-2005 04:13 PDT
Last Modified:              11-23-2006 05:23 PST
====================================================================== 
Summary:                    broadcast address isn't recalculated if ifconfig of
a network address with a non-standard netmask
Description: 
There exist today an option CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS which
enables one to add a ifconfig argument like "broadcast +" which will
automatically
calculate broadcast address correctly.
If one don't add the broadcast address, it will be calculated by kernel
code in the ioctl of SIOCSIFBRDADDR. In the case the user sets a
non-standard
netmask, it will be calculated incorrectly (because the netmask isn't
known
at the time and standard netmask according to IP is used...)
The patch calculate and sets broadcast after setting netmask (but not
if broadcast has already been set -> we don't want to overwrite a already
specified broadcast) and thus this little nag is history :-)
====================================================================== 

---------------------------------------------------------------------- 
 vda - 11-23-06 05:23  
---------------------------------------------------------------------- 
It looks like it is working correctly in current svn. However iyt is hard
to check for that - bug reports does not contain an example of what is not
working right exactly. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-09-05 04:13  perh           New Issue                                    
05-09-05 04:13  perh           File Added: busybox-1.00.patch                   

11-23-06 05:23  vda            Status                   assigned => closed  
11-23-06 05:23  vda            Note Added: 0001793                          
======================================================================




More information about the busybox-cvs mailing list