[BusyBox-cvs] [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
Mon May 9 11:13:27 UTC 2005


The following issue has been SUBMITTED.
======================================================================
<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:                     assigned
======================================================================
Date Submitted:             05-09-2005 04:13 PDT
Last Modified:              05-09-2005 04:13 PDT
======================================================================
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 :-)
======================================================================

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                    
======================================================================




More information about the busybox-cvs mailing list