Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 2003 13:48:43 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Bogdan TARU <bgd@icomag.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: netstat -s output
Message-ID:  <20030606134708.J6293@news1.macomnet.ru>
In-Reply-To: <20030606111519.D82842-100000@fw.office.icom>
References:  <20030606111519.D82842-100000@fw.office.icom>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Jun 2003, 11:19+0200, Bogdan TARU wrote:

>
>
> 	Hi hackers,
>
>  I have tried to find out the amount of traffic that one box sent (from
> the last reboot), and netstat -s seemed like a good choice. But netstat -s
> seems to generate incorrect results:
>
> tcp:
>         1730547260 packets sent
>                 1325234728 data packets (1119813018 bytes)
>                 28496801 data packets (151887376 bytes) retransmitted
>
>  This box generated a lot more than ~12Gb of tcp traffic since the last
> reboot. And I have not messed up with interfaces (up, down, whatever) OR
> with netstat -z in all this time. Any idea what could be wrong? Are the
> counters resetted sometimes, or they wrap sometimes, or...?

They wrap at 2^32.

-- 
Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030606134708.J6293>