From owner-freebsd-isp@FreeBSD.ORG Mon May 30 20:00:02 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05DD716A41C for ; Mon, 30 May 2005 20:00:02 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from ns2.wananchi.com (mail.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FFD143D48 for ; Mon, 30 May 2005 20:00:00 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 4.51 #0 (FreeBSD 4.11-STABLE)) id 1DcqQW-000F0F-Jk by authid ; Mon, 30 May 2005 22:59:56 +0300 Date: Mon, 30 May 2005 22:59:56 +0300 From: Odhiambo Washington To: Vicky Shrestha Message-ID: <20050530195956.GB54092@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , Vicky Shrestha , freebsd-isp@freebsd.org References: <200505262340.15643.mail@vickysh.wlink.com.np> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505262340.15643.mail@vickysh.wlink.com.np> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine alone!. X-Mailer: Mutt 1.5.9i (2005-03-13) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. User-Agent: Mutt/1.5.9i Cc: freebsd-isp@freebsd.org Subject: Re: netstat: sysctl: net.inet.tcp.stats: Cannot allocate memory X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 20:00:02 -0000 * Vicky Shrestha [20050526 20:56]: wrote: > Dear all, > > I am running FreeBSD 5.4-STABLE and I have a problem with netstat. I cannot > see the tcp sockets stats using netstat -p tcp or netstat command. When using > "netstat -s" command I get "netstat: sysctl: net.inet.tcp.stats: Cannot > allocate memory" > > At first I thought it was a problem with netstat binary ,however even after > copying binary from the other working server with same release of FreeBSD , > it didn't work. > > The only change I made was to built a new kernel with the following options: > # IPSEC > options IPSEC #IP security > options IPSEC_ESP #IP security (crypto; define w/ IPSEC) > > #IPFW > options IPFIREWALL > options IPDIVERT > > I also do cvsup to sync the src and ports, I think the netstat binary and > kernel is out of sync however, when I do make > inside /usr/src/usr.bin/netstat/ it gives me the following errors: > > Warning: Object directory not changed from original /usr/src/usr.bin/netstat > cc -O -pipe -DIPSEC -DINET6 -Wsystem-headers -Wall -Wno-format-y2k > -Wno-uninitialized -c inet.c > inet.c:54:29: netinet/ip_carp.h: No such file or directory > inet.c: In function `tcp_stats': > inet.c:467: error: structure has no member named `tcps_sack_sboverflow' > inet.c:467: error: structure has no member named `tcps_sack_sboverflow' > inet.c: In function `carp_stats': > inet.c:536: error: storage size of 'carpstat' isn't known > inet.c:536: error: storage size of 'zerostat' isn't known > inet.c:537: error: invalid application of `sizeof' to incomplete type > `carpstats' > inet.c:536: warning: unused variable `carpstat' > inet.c:536: warning: unused variable `zerostat' > *** Error code 1 > > Stop in /usr/src/usr.bin/netstat. > > How can I resolve this issue, help and pointers to the web will be > appreciated. Read the handbook about how to sync kernel and userland cvsup for src make buildworld make kernel reboot mergemaster make installworld ...and everything will be okay. I run FreeBSD 5.4 here and it does not have such problem. -Wash http://www.netmeister.org/news/learn2quote.html -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ Crime does not pay ... as well as politics. -- A. E. Neuman