Silly netstat question
Mark Saad
nonesuch at longcount.org
Thu Jan 12 17:45:41 UTC 2017
Andrew
On Thu, Jan 12, 2017 at 8:04 AM, Andrew Duane <aduane at 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 at juniper.net
>
>
>
> -----Original Message-----
> From: owner-freebsd-hackers at freebsd.org [mailto:owner-freebsd-hackers at freebsd.org] On Behalf Of Mark Saad
> Sent: Wednesday, January 11, 2017 10:23 PM
> To: freebsd-hackers at 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 at longcount.org
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
--
mark saad | nonesuch at longcount.org
More information about the freebsd-hackers
mailing list