From owner-freebsd-hackers@freebsd.org Thu Jan 12 17:45:41 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98642CAD3FF for ; Thu, 12 Jan 2017 17:45:41 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-yw0-x229.google.com (mail-yw0-x229.google.com [IPv6:2607:f8b0:4002:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 606EA1D26 for ; Thu, 12 Jan 2017 17:45:41 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by mail-yw0-x229.google.com with SMTP id l19so16477954ywc.2 for ; Thu, 12 Jan 2017 09:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aO6f8xH6YBYBta4AvGYxUv3FTaZjZ6ZNncF+fqtNC/4=; b=HJZagoJhWMs6R5Lrr/PcN3dhSzlwQWBTT4NfGihov8WsU3q3ZmhDEwRSNZ83lojVek +vu0bmtPA0BwSy6Y08i6SdjH2JTt12eXq0kFqdwa7kJBas7wz+k9MDZDVbk4BZes+WLm QvtwDKPHlnmB5hR5asMOKqfVeI/nVG3lYGD4tobVaBmfPIJOt4zaJKXav8jP3JIQwxj1 72T5l/5VnzjTdGzQBbzrgq70OTu0HFFMYXyN3v3nbTSXu1E5h4ZT9P/WwtNG7TeuPZI4 s3s0p2LEmM/ylf0Pji8x7gLAQz+9+YjKMVMkWdli0+pazzDdzdo1i0o8GP8cTKEigNrQ m1eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aO6f8xH6YBYBta4AvGYxUv3FTaZjZ6ZNncF+fqtNC/4=; b=DXfpGdZHZG8mXKqA4Nc2sAAriOGMZt2IGmlP28QgjuoZVNSHWltJpyyh3gqK82rup5 96koU7U5NtaZDsg8O9zaXyALbfet9IJ6IalOEX/B+zZCysDW1CS2g2DQX++5hEbSh9t6 JLYCjI+MnDFAfRrfKdoSYz+u5XZUDlCV4b5NEZstp1FN+hfmXqe0PXAWjmjHIcFLrmN4 G6BYpzhT5PM6RCpANaZQELw9SVcWO3xnc0gTxQic6pG7K0S95XpymU66fAtcVLwvRlf1 OszdpytjIG9DtWBhloA1qzOBTr9iLugJaLwqYL2VGaAAc9wRkMhf0lrhFne303ztC8KG mNvA== X-Gm-Message-State: AIkVDXKq/9YwD/gEX/LQlEi7ryqzY/Sk73L3FZuM3xSBJl7Ezgo3GmhX+tKsXK2imG6FiZTTU7ngbAG07fUFKw== X-Received: by 10.129.73.65 with SMTP id w62mr12096880ywa.288.1484243140341; Thu, 12 Jan 2017 09:45:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.23.214 with HTTP; Thu, 12 Jan 2017 09:45:39 -0800 (PST) X-Originating-IP: [67.86.122.252] In-Reply-To: References: From: Mark Saad Date: Thu, 12 Jan 2017 12:45:39 -0500 Message-ID: Subject: Re: Silly netstat question To: Andrew Duane Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2017 17:45:41 -0000 Andrew On Thu, Jan 12, 2017 at 8:04 AM, Andrew Duane wrote: > It's just a flag to indicate whether the -b flag was set on the command line. > Ahh ; I was looking at this all upside down. I see the counter in sys/net/if_var.h void if_inc_counter(struct ifnet *, ift_counter, int64_t); > .................................... > Andrew L. Duane - Principal Resident Engineer > AT&T Advanced Services Technical Lead > m +1 603.770.7088 > o +1 408.933.6944 (2-6944) > skype: andrewlduane > aduane@juniper.net > > > > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd-hackers@freebsd.org] On Behalf Of Mark Saad > Sent: Wednesday, January 11, 2017 10:23 PM > To: freebsd-hackers@freebsd.org > Subject: Silly netstat question > > All > I am looking at confirming if netstat returns 32 bit counters when you call netstat -bni -I nic# > > I tracked this down to the bflag variable whic is in src/usr.bin/netstat/netstat.h > > extern int bflag; /* show i/f total bytes in/out */ > > Does anyone know why this is a signed int , and not a u_long ? > > > > -- > mark saad | nonesuch@longcount.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- mark saad | nonesuch@longcount.org