Date: Thu, 07 Jun 2001 12:23:20 +0200 From: Juan Fco Rodriguez Hervella <jrh@it.uc3m.es> To: Lista <freebsd-net@freebsd.org> Subject: How to count frames transmitted through the ethernet card. Message-ID: <3B1F5618.4924F64C@it.uc3m.es>
next 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. I would not like to run this commands with popen() or similar because I would have to parse the output, and this output have not always the same format. Does anyone knows some easy-function or an easy method to do this ? Best Regards. ***** JFRH ***** 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?3B1F5618.4924F64C>