Re: How to count frames transmitted through the ethernet card.

2001-06-07 Thread Luigi Rizzo
> That is my problem, If sendto() *not* always returns ENOBUFS, I > need to know the packets what are actually transmited... you don't have a way to know. The transmission can fail in the device driver (e.g. because of excessive collisions) and you only know it at a later time. cheers

Re: How to count frames transmitted through the ethernet card.

2001-06-07 Thread Juan Fco Rodriguez Hervella
That is my problem, If sendto() *not* always returns ENOBUFS, I need to know the packets what are actually transmited... >> 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. >>

Re: How to count frames transmitted through the ethernet card.

2001-06-07 Thread Luigi Rizzo
> 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/

How to count frames transmitted through the ethernet card.

2001-06-07 Thread Juan Fco Rodriguez Hervella
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 woul