Subject: Re: problems compiling current /src/sbin/ifconfig
To: None <frueauf@ira.uka.de>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 02/17/1996 15:51:56
>From: Thorsten Frueauf <frueauf@ira.uka.de>
>Date: Fri, 16 Feb 1996 17:00:40 +0000 (GMT)

>/src/sbin/ifconfig:
>cc -O  -Werror  -c /amd/home/milano/source/netbsd-src/sbin/ifconfig/ifconfig.c
>/amd/home/milano/source/netbsd-src/sbin/ifconfig/ifconfig.c: In function `main':
>/amd/home/milano/source/netbsd-src/sbin/ifconfig/ifconfig.c:253: structure has n
>o member named `ifra_dstaddr'

>Any suggestions on that one?

This problem occurs because of a disagreement between
/sys/netinet/in_var.h and /sys/netns/ns_if.h.  One has

#define ifra_dstaddr ifra_broadaddr

and the other has

#define ifra_broadaddr ifra_dstaddr

I compared them against 1.1 sources; ns_if.h was the one that had
changed, so I changed it back.  After that, I was able to build a
working ifconfig.

These #defines are rather bogus.  If it were up to me, I'd pick one of
the two names to always be used, rip out *both* #defines, and update
whatever breaks.
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil