Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 12:57:45 +0200 (CEST)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        Juan Fco Rodriguez Hervella <jrh@it.uc3m.es>
Cc:        Lista <freebsd-net@FreeBSD.ORG>
Subject:   Re: How to count frames transmitted through the ethernet card.
Message-ID:  <200106071057.MAA40954@info.iet.unipi.it>
In-Reply-To: <3B1F5618.4924F64C@it.uc3m.es> from Juan Fco Rodriguez Hervella at "Jun 7, 2001 12:23:20 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello:
> 
> I am doing a program that sends udp packets. I have a counter
> and each time I send a packet with "sendto()", I increment the value
> of this variable.
> 
> But I would like to count the frames that are being actually
> transmitted, through the ethernet card, some like the ifconfig/netstat.

In principle sendto() can return you an ENOBUFS error when the
interface queue is full, but not always (depending on how the
firewall plays with the packet).

	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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