From owner-freebsd-isp@FreeBSD.ORG Thu May 26 17:55:44 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 F07EE16A41C for ; Thu, 26 May 2005 17:55:44 +0000 (GMT) (envelope-from mail@vickysh.wlink.com.np) Received: from smtp4.wlink.com.np (smtp4.wlink.com.np [202.79.32.87]) by mx1.FreeBSD.org (Postfix) with SMTP id BAE2943D53 for ; Thu, 26 May 2005 17:55:27 +0000 (GMT) (envelope-from mail@vickysh.wlink.com.np) Received: (qmail 29519 invoked from network); 26 May 2005 17:55:20 -0000 Received: from unknown (HELO qmail-scanner.wlink.com.np) (202.79.32.74) by 0 with SMTP; 26 May 2005 17:55:20 -0000 Received: (qmail 64563 invoked by uid 1008); 26 May 2005 17:55:20 -0000 Received: from mail@vickysh.wlink.com.np by qmail-scanner.wlink.com.np by uid 1002 with qmail-scanner-1.20 (clamscan: 0.70. Clear:RC:1(202.79.32.76):. Processed in 0.010979 secs); 26 May 2005 17:55:20 -0000 Received: from smtp1.wlink.com.np (202.79.32.76) by qmail-scanner.wlink.com.np with SMTP; 26 May 2005 17:55:20 -0000 Received: (qmail 28962 invoked by uid 508); 26 May 2005 17:55:20 -0000 Received: from [202.79.55.245] (HELO vicks.wlink.com.np) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 26 May 2005 17:55:18 -0000 (Thu, 26 May 2005 23:40:18 +0545) From: Vicky Shrestha Organization: WorldLink Communications To: freebsd-isp@freebsd.org Date: Thu, 26 May 2005 23:40:15 +0545 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505262340.15643.mail@vickysh.wlink.com.np> X-Spam-Check-By: smtp1.wlink.com.np Spam: No ; -4.9 / 5.0 X-Spam-Status-WL: No, hits=-4.9 required=5.0 Subject: netstat: sysctl: net.inet.tcp.stats: Cannot allocate memory X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mail@vickysh.wlink.com.np List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 17:55:45 -0000 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. -- With regards, Vicky Shrestha System Director WorldLink Communications Jawalakhel , Kathmandu, Nepal