[haiku-development] Re: interfaceAddress Broadcast address issue

  • From: Alexander von Gluck <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 09 Feb 2011 18:10:16 -0600

On Wed, 2011-02-09 at 17:39 -0600, Alexander von Gluck wrote:
> I've been digging through things trying to find out why the broadcast
> address wasn't being set properly. (10.255.255.255 instead of
> 10.21.17.255 when the netmask is 255.255.254.0)

I was able to fix this... but the solution means a field might need to
be removed from one of the protocol functions.

Here is how i fixed things:

http://pastebin.com/XxPeD3r4


Thoughts?  As I am not sure what needs to change for this to be fixed
properly, as such... I am not going to make any commits on it for the
moment. The result is however correct:

/dev/net/broadcom570x/0
        Hardware type: Ethernet, Address: 00:15:60:c0:17:a5
        Media type: 100 MBit, 100BASE-TX
        inet addr: 10.21.16.72, Bcast: 10.21.17.255, Mask: 255.255.254.0
        MTU: 1500, Metric: 0, up broadcast link auto-configured
        Receive: 1878 packets, 0 errors, 177197 bytes, 0 mcasts, 0 dropped
        Transmit: 155 packets, 0 errors, 17419 bytes, 0 mcasts, 0 dropped
        Collisions: 0


-- 
Thanks!
 -Alexander von Gluck IV
  GPG/C32E7686


Other related posts: