Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 1996 09:43:25 +0100 (MET)
From:      guido@IAEhv.nl (Guido van Rooij)
To:        freebsd-hackers@freebsd.org
Subject:   SIOCGIFBRDADDR
Message-ID:  <199603140843.JAA26397@iaehv.IAEhv.nl>

next in thread | raw e-mail | index | archive | help
I was looking at the SIOCGIFBRDADDR interface and discovered that 
always the broadcast address belonging to the *first* inet
address of the specified interface is returned.
I believe this is wrong. You should get the broadcast address belonging
to the address specified in the passed ifreq structure.

I was experimenting with aliases on an interface for which the
alias lies in a completely different network the already present
address. There should be no reason for this to fail. Except
that no program will be able to obtrain the correct broadcast
address.

-Guido



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603140843.JAA26397>