Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 12:45:39 -0500
From:      Mark Saad <nonesuch@longcount.org>
To:        Andrew Duane <aduane@juniper.net>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Silly netstat question
Message-ID:  <CAMXt9NZq16WfRK%2BnGGaDTko=%2Be1L-Am24Owcf7DJhjShWRVbyw@mail.gmail.com>
In-Reply-To: <SN1PR0501MB212534F336BD17BCF2FB47D2CE790@SN1PR0501MB2125.namprd05.prod.outlook.com>
References:  <CAMXt9NZgv4Kzcea8zOwO0iF69RNH6f-nxQek41LNZ0ZGUefJqQ@mail.gmail.com> <SN1PR0501MB212534F336BD17BCF2FB47D2CE790@SN1PR0501MB2125.namprd05.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew

On Thu, Jan 12, 2017 at 8:04 AM, Andrew Duane <aduane@juniper.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMXt9NZq16WfRK%2BnGGaDTko=%2Be1L-Am24Owcf7DJhjShWRVbyw>