On 6/5/11, Debasish Ray Chawdhuri <[email protected]> wrote:
> Well, I don't know much about libpcap, but this is the one used in tcp dump.
> So, since tcpdump allows to dump only http packets, it appears it must be
> possible by the library.
>
>
> tcpdump ’port http’

Hi Deepak

I have used libpcap with C before and it was straight forward.
AFAIK,tcpdump also relies and libpcap. If you wish to implement what
you outlined earlier, doing it with a script using tcpdump would be
quicker and easily distributed (in terms of others not needing to
compile or install libpcap dev files). My first impression tells me
that using the word transfer rate or some sort of download rate might
be a more appropriate word than bandwidth. The method should also
allow you to compare the rates you get for say HTTP and FTP.


Sharad

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to