My constraint is that i can not use any existing tool for it(like tcpdump) so i guess i have to develop that sniffing program first...and yes i agree with u Sharad "download rate" will be more appropriate word. so i should start working on the sniffing tool first? (please correct me if i m wrong) can you provide some tutorial or so for it..
BR Deepak Garg On Sun, Jun 5, 2011 at 6:29 PM, Sharad Birmiwal <[email protected]>wrote: > 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 > -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
