Subject: carp_stats in netstat -- INET6 ?
To: None <current-users@netbsd.org>
From: Iain Hibbert <plunky@rya-online.net>
List: current-users
Date: 05/23/2006 08:45:14
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1502732621-1148366275=:2223
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.NEB.4.64.0605230843561.2867@localhost.>

Hi,
   CVS update last night, build failed.

#   compile  netstat/inet.o
/home/tools/bin/i386--netbsdelf-gcc -O2  -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
-Werror   -DIPSEC  -nostdinc -isystem /home/obj/destdir.i386/usr/include
-c    /home/plunky/src/usr.bin/netstat/inet.c
/home/plunky/src/usr.bin/netstat/inet.c:639: warning: no previous
prototype for `carp_stats'

*** Failed target:  inet.o

which seems to be because carp_stats() is prototyped inside #ifdef INET6
but defined in full view..  patch attached seems to work (I dont think
CARP is IPv6 only?)

iain
--0-1502732621-1148366275=:2223
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.0605230737550.2223@localhost.>
Content-Description: netstat carp_stats diff
Content-Disposition: ATTACHMENT; FILENAME=diff

LS0tIG5ldHN0YXQuaC5vcmlnCTIwMDYtMDUtMjMgMDc6MzU6MzguMDAwMDAw
MDAwICswMTAwDQorKysgbmV0c3RhdC5oCTIwMDYtMDUtMjMgMDc6MzY6MTQu
MDAwMDAwMDAwICswMTAwDQpAQCAtNzcsNiArNzcsNyBAQA0KIHZvaWQJaWdt
cF9zdGF0cyBfX1AoKHVfbG9uZywgY2hhciAqKSk7DQogdm9pZAlwaW1fc3Rh
dHMgX19QKCh1X2xvbmcsIGNoYXIgKikpOw0KIHZvaWQJYXJwX3N0YXRzIF9f
UCgodV9sb25nLCBjaGFyICopKTsNCit2b2lkCWNhcnBfc3RhdHMgX19QKCh1
X2xvbmcsIGNoYXIgKikpOw0KICNpZmRlZiBJUFNFQw0KIC8qIHJ1bi10aW1l
IHNlbGVjdG9yIGZvciB3aGljaCAgaW1wbGVtZW50YXRpb24gKEtBTUUsIEZB
U1RfSVBTRUMpIHRvIHNob3cgKi8NCiB2b2lkCWlwc2VjX3N3aXRjaCBfX1Ao
KHVfbG9uZywgY2hhciAqKSk7DQpAQCAtMTAyLDcgKzEwMyw2IEBADQogdm9p
ZAltcm91dGU2cHIgX19QKCh1X2xvbmcsIHVfbG9uZywgdV9sb25nKSk7DQog
dm9pZAltcnQ2X3N0YXRzIF9fUCgodV9sb25nLCB1X2xvbmcpKTsNCiBjaGFy
CSpyb3V0ZW5hbWU2IF9fUCgoc3RydWN0IHNvY2thZGRyX2luNiAqKSk7DQot
dm9pZAljYXJwX3N0YXRzIF9fUCgodV9sb25nLCBjaGFyICopKTsNCiAjZW5k
aWYgLypJTkVUNiovDQogDQogI2lmZGVmIElQU0VDDQo=

--0-1502732621-1148366275=:2223--