From owner-freebsd-hackers Thu Mar 14 00:43:30 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA08257 for hackers-outgoing; Thu, 14 Mar 1996 00:43:30 -0800 (PST) Received: from iaehv.IAEhv.nl (root@iaehv.IAEhv.nl [192.87.208.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA08252 for ; Thu, 14 Mar 1996 00:43:27 -0800 (PST) Received: by iaehv.IAEhv.nl (8.6.13/1.63) id JAA26397; Thu, 14 Mar 1996 09:43:25 +0100 From: guido@IAEhv.nl (Guido van Rooij) Message-Id: <199603140843.JAA26397@iaehv.IAEhv.nl> Subject: SIOCGIFBRDADDR To: freebsd-hackers@freebsd.org Date: Thu, 14 Mar 1996 09:43:25 +0100 (MET) X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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